Improve debug description of WAKViews
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-10-14  Myles C. Maxfield  <mmaxfield@apple.com>
2
3         Improve debug description of WAKViews
4         https://bugs.webkit.org/show_bug.cgi?id=137716
5
6         Reviewed by Simon Fraser.
7
8         * WebView/WebView.mm:
9         (-[WebView _touchEventRegions]): Adding a comment.
10
11 2014-10-14  Myles C. Maxfield  <mmaxfield@apple.com>
12
13         Addressing post-review comment.
14         https://bugs.webkit.org/show_bug.cgi?id=137550
15
16         Unreviewed.
17
18         * WebView/WebHTMLView.mm:
19         (fontNameForDescription):
20         (-[WebHTMLView _addToStyle:fontA:fontB:]):
21
22 2014-10-14  Chris Dumez  <cdumez@apple.com>
23
24         Use is<>() / downcast<>() for RenderImage
25         https://bugs.webkit.org/show_bug.cgi?id=137683
26
27         Reviewed by Mihnea Ovidenie.
28
29         Use is<>() / downcast<>() for RenderImage.
30
31         * Misc/WebNSPasteboardExtras.mm:
32         (imageFromElement):
33         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
34
35 2014-10-10  Daniel Bates  <dabates@apple.com>
36
37         Remove unused classes WebRender{Node, Layer}
38         https://bugs.webkit.org/show_bug.cgi?id=137628
39
40         Reviewed by Simon Fraser.
41
42         We no longer make use of the WebKit1-specific classes WebRenderNode and WebRenderLayer.
43         For completeness, there is a WebKit2 analogue of WebRenderLayer by the same name.
44
45         * Configurations/WebKitLegacy.xcconfig: Remove file WebRenderNode.mm from the list
46         of excluded source files when building for iOS.
47         * WebKit.exp: Remove symbol for WebRenderLayer.
48         * WebKit.mac.exp: Remove symbol for WebRenderNode.
49         * WebView/WebRenderLayer.h: Removed.
50         * WebView/WebRenderLayer.mm: Removed.
51         * WebView/WebRenderNode.h: Removed.
52         * WebView/WebRenderNode.mm: Removed.
53
54 2014-10-10  Chris Dumez  <cdumez@apple.com>
55
56         Use is<>() / downcast<>() for RenderBoxModelObject
57         https://bugs.webkit.org/show_bug.cgi?id=137587
58
59         Reviewed by Mihnea Ovidenie.
60
61         Use is<>() / downcast<>() for RenderBoxModelObject and clean up the
62         surrounding code.
63
64         * Plugins/WebBaseNetscapePluginView.mm:
65         (-[WebBaseNetscapePluginView invalidatePluginContentRect:]):
66         * WebView/WebRenderLayer.mm:
67         (-[WebRenderLayer initWithWebFrame:]):
68
69 2014-10-09  Dean Jackson  <dino@apple.com>
70
71         Remove ENABLE_CSS3_CONDITIONAL_RULES
72         https://bugs.webkit.org/show_bug.cgi?id=137571
73
74         Reviewed by Simon Fraser.
75
76         * Configurations/FeatureDefines.xcconfig:
77
78 2014-10-09  Tim Horton  <timothy_horton@apple.com>
79
80         Add a WebKit1 preference for selection services
81         https://bugs.webkit.org/show_bug.cgi?id=137498
82         <rdar://problem/18572699>
83
84         Reviewed by Simon Fraser.
85
86         * WebView/WebPreferenceKeysPrivate.h:
87         * WebView/WebPreferences.mm:
88         (+[WebPreferences initialize]):
89         (-[WebPreferences serviceControlsEnabled]):
90         (-[WebPreferences setServiceControlsEnabled:]):
91         * WebView/WebPreferencesPrivate.h:
92         * WebView/WebView.mm:
93         (-[WebView _preferencesChanged:]):
94         Add and plumb the preference.
95
96 2014-10-09  Myles C. Maxfield  <mmaxfield@apple.com>
97
98         Remove second-to-last client of WebFontCache
99         https://bugs.webkit.org/show_bug.cgi?id=137550
100
101         Reviewed by Darin Adler.
102
103         Use FontCache::getCachedFontData() instead of WebFontCache.
104
105         * WebView/WebHTMLView.mm:
106         (-[WebHTMLView _addToStyle:fontA:fontB:]):
107
108 2014-10-09  Chris Dumez  <cdumez@apple.com>
109
110         Use is<>() / downcast<>() for Widget subclasses
111         https://bugs.webkit.org/show_bug.cgi?id=137549
112
113         Reviewed by Darin Adler.
114
115         Use is<>() / downcast<>() for Widget subclasses and clean up the
116         surrounding code.
117
118         * WebView/WebRenderNode.mm:
119         (copyRenderNode):
120         * WebView/WebView.mm:
121         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
122
123 2014-10-07  Christophe Dumez  <cdumez@apple.com>
124
125         Use is<>() / downcast<>() for RenderText / RenderTextFragment
126         https://bugs.webkit.org/show_bug.cgi?id=137476
127
128         Reviewed by Darin Adler.
129
130         * WebView/WebRenderNode.mm:
131         (copyRenderNode):
132
133 2014-10-06  Dan Bernstein  <mitz@apple.com>
134
135         Build fix.
136
137         * Misc/WebCache.mm:
138         (+[WebCache imageForURL:]):
139
140 2014-10-06  Chris Dumez  <cdumez@apple.com>
141
142         Unreviewed build fix after r174333.
143
144         Forgot explicit WebCore:: namespace.
145
146         * Misc/WebCache.mm:
147         (+[WebCache imageForURL:]):
148
149 2014-10-05  Christophe Dumez  <cdumez@apple.com>
150
151         Use is<>() / downcast<>() for CachedResource subclasses
152         https://bugs.webkit.org/show_bug.cgi?id=137431
153
154         Reviewed by Benjamin Poulain.
155
156         Use is<>() / downcast<>() for CachedResource subclasses.
157
158         * Misc/WebCache.mm:
159         (+[WebCache imageForURL:]):
160
161 2014-10-02  Daniel Bates  <dabates@apple.com>
162
163         Use version number 101000 instead of 10100 for OS X Yosemite
164         https://bugs.webkit.org/show_bug.cgi?id=137372
165
166         Reviewed by Mark Rowe.
167
168         The version number for OS X Yosemite is 101000.
169
170         * WebView/WebView.mm:
171         (-[WebView _preferencesChanged:]):
172
173 2014-10-02  Tim Horton  <timothy_horton@apple.com>
174
175         Move PageOverlay[Controller] to WebCore
176         https://bugs.webkit.org/show_bug.cgi?id=137164
177         <rdar://problem/18508258>
178
179         Reviewed by Anders Carlsson.
180
181         * WebCoreSupport/WebChromeClient.h:
182         * WebCoreSupport/WebChromeClient.mm:
183         (WebChromeClient::attachViewOverlayGraphicsLayer):
184         Add an empty ChromeClient override.
185
186 2014-10-01  Christophe Dumez  <cdumez@apple.com>
187
188         Have is<>(T*) function do a null check on the pointer argument
189         https://bugs.webkit.org/show_bug.cgi?id=137333
190
191         Reviewed by Gavin Barraclough.
192
193         Have is<>(T*) function do a null check on the argument instead of a
194         simple assertion. This makes sense for 2 reasons:
195         1. It is more consistent with downcast<>(T*), which will succeed even
196            if the argument is a nullptr.
197         2. It simplifies the code a bit as it gets rid of a lot of explicit
198            null checks.
199
200         * WebCoreSupport/WebChromeClient.mm:
201         (WebChromeClient::focusedElementChanged):
202         * WebCoreSupport/WebEditorClient.mm:
203         (WebEditorClient::textFieldDidBeginEditing):
204         (WebEditorClient::textFieldDidEndEditing):
205         (WebEditorClient::textDidChangeInTextField):
206         (WebEditorClient::doTextFieldCommandFromEvent):
207         (WebEditorClient::textWillBeDeletedInTextField):
208         (WebEditorClient::textDidChangeInTextArea):
209         * WebView/WebHTMLRepresentation.mm:
210         (inputElementFromDOMElement):
211         (searchForLabelsBeforeElement):
212         * WebView/WebRenderLayer.mm:
213         (+[WebRenderLayer nameForLayer:]):
214
215 2014-10-01  Mark Rowe  <mrowe@apple.com>
216
217         <https://webkit.org/b/137308> WebKit should build on OS X Yosemite for external users
218
219         Reviewed by Dan Bernstein.
220
221         * Configurations/DebugRelease.xcconfig: Use libWebKitSystemInterfaceYosemite.a on Yosemite.
222
223 2014-09-30  Chris Dumez  <cdumez@apple.com>
224
225         Use is<>() / downcast<>() for Element
226         https://bugs.webkit.org/show_bug.cgi?id=137241
227
228         Reviewed by Andreas Kling.
229
230         Use is<>() / downcast<>() for Element instead of isElementNode() /
231         toElement().
232
233         * WebView/WebRenderLayer.mm:
234         (+[WebRenderLayer nameForLayer:]):
235
236 2014-09-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
237
238         Move ColorInputType class to std::unique_ptr
239         https://bugs.webkit.org/show_bug.cgi?id=137173
240
241         Reviewed by Darin Adler.
242
243         Replace uses of PassOwnPtr in code under ColorInputType class with std::unique_ptr.
244         Child classes follow this change as well.
245
246         * WebCoreSupport/WebChromeClient.h:
247         * WebCoreSupport/WebChromeClient.mm:
248         (WebChromeClient::createColorChooser):
249
250 2014-09-24  Christophe Dumez  <cdumez@apple.com>
251
252         Add initial is<>() / downcast<>() support for any type of Nodes
253         https://bugs.webkit.org/show_bug.cgi?id=137056
254
255         Reviewed by Benjamin Poulain.
256
257         Use is<HTMLFormControlElement>() / downcast<HTMLFormControlElement>()
258         instead of isFormControlElement() / toHTMLFormControlElement().
259
260         * WebView/WebHTMLRepresentation.mm:
261         (searchForLabelsBeforeElement):
262
263 2014-09-24  Christophe Dumez  <cdumez@apple.com>
264
265         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
266         https://bugs.webkit.org/show_bug.cgi?id=137068
267
268         Reviewed by Ryosuke Niwa.
269
270         Start using is<HTML*Element>() instead of isHTML*Element().
271         Remaining usages will be updated in a follow-up patch to
272         reduce the size of the change.
273
274         * WebCoreSupport/WebChromeClient.mm:
275         (WebChromeClient::focusedElementChanged):
276         * WebCoreSupport/WebEditorClient.mm:
277         (WebEditorClient::textFieldDidBeginEditing):
278         (WebEditorClient::textFieldDidEndEditing):
279         (WebEditorClient::textDidChangeInTextField):
280         (WebEditorClient::doTextFieldCommandFromEvent):
281         (WebEditorClient::textWillBeDeletedInTextField):
282         (WebEditorClient::textDidChangeInTextArea):
283         * WebView/WebHTMLRepresentation.mm:
284         (inputElementFromDOMElement):
285
286 2014-09-21  Timothy Hatcher  <timothy@apple.com>
287
288         Make the Web Inspector use a separate web process.
289
290         https://bugs.webkit.org/show_bug.cgi?id=135120
291
292         Reviewed by Anders Carlsson.
293
294         * WebCoreSupport/WebInspectorClient.h:
295         * WebCoreSupport/WebInspectorClient.mm:
296         (WebInspectorClient::WebInspectorClient):
297         (WebInspectorClient::openInspectorFrontend):
298         (WebInspectorClient::releaseFrontend):
299         Own WebInspectorFrontendClient instead of moving it.
300
301 2014-09-23  Chris Dumez  <cdumez@apple.com>
302
303         Use downcast<HTML*Element>() instead of toHTML*Element()
304         https://bugs.webkit.org/show_bug.cgi?id=137007
305
306         Reviewed by Benjamin Poulain.
307
308         Use downcast<HTML*Element>() instead of toHTML*Element().
309
310         * DOM/WebDOMOperations.mm:
311         (-[DOMHTMLInputElement _setAutofilled:]):
312         * WebCoreSupport/WebChromeClient.mm:
313         (WebChromeClient::focusedElementChanged):
314         * WebCoreSupport/WebEditorClient.mm:
315         (WebEditorClient::textFieldDidBeginEditing):
316         (WebEditorClient::textFieldDidEndEditing):
317         (WebEditorClient::textDidChangeInTextField):
318         (WebEditorClient::doTextFieldCommandFromEvent):
319         (WebEditorClient::textWillBeDeletedInTextField):
320         (WebEditorClient::textDidChangeInTextArea):
321         * WebView/WebHTMLRepresentation.mm:
322         (inputElementFromDOMElement):
323
324 2014-09-21  Chris Dumez  <cdumez@apple.com>
325
326         Generate Element casting helper functions
327         https://bugs.webkit.org/show_bug.cgi?id=136839
328
329         Reviewed by Darin Adler.
330
331         Use JSXXX::toWrapped() instead of toXXX() function.
332
333         * DOM/WebDOMOperations.mm:
334         * WebView/WebView.mm:
335         (-[WebView _notificationIDForTesting:]):
336
337 2014-09-21  Joseph Pecoraro  <pecoraro@apple.com>
338
339         Leak: WebNotificationPrivate ObjC leaks seen on leaks bot
340         https://bugs.webkit.org/show_bug.cgi?id=136972
341
342         Reviewed by Darin Adler.
343
344         * WebView/WebNotification.h:
345         * WebView/WebNotification.mm:
346         (-[WebNotification initWithCoreNotification:notificationID:]):
347         Switch to RetainPtr and adopt into _private to ensure when we are
348         deallocated that _private will get deallocated.
349
350 2014-09-19  Dean Jackson  <dino@apple.com>
351
352         Multithreaded WebGL is a bad idea - remove it
353         https://bugs.webkit.org/show_bug.cgi?id=136964
354         <rdar://problem/18399858>
355
356         Reviewed by Brent Fulgham.
357
358         Remove the setting to allow multithreaded WebGL.
359
360         * WebView/WebPreferenceKeysPrivate.h:
361         * WebView/WebPreferences.mm:
362         (+[WebPreferences initialize]):
363         (-[WebPreferences multithreadedWebGLEnabled]): Deleted.
364         (-[WebPreferences setMultithreadedWebGLEnabled:]): Deleted.
365         * WebView/WebPreferencesPrivate.h:
366         * WebView/WebView.mm:
367         (-[WebView _preferencesChanged:]):
368
369 2014-09-19  Daniel Bates  <dabates@apple.com>
370
371         Always assume internal SDK when building configuration Production
372         https://bugs.webkit.org/show_bug.cgi?id=136925
373         <rdar://problem/18362399>
374
375         Reviewed by Dan Bernstein.
376
377         As a side effect of this change we will always enable ENABLE_TOUCH_EVENTS, ENABLE_IOS_{GESTURE, TOUCH}_EVENTS,
378         and ENABLE_XSLT when either building configuration Production or building with the Internal SDK.
379
380         * Configurations/Base.xcconfig:
381
382 2014-09-17  Daniel Bates  <dabates@apple.com>
383
384         Unreviewed, rolling out r173695.
385
386         Broke building third-party Legacy WebKit apps; will
387         investigate offline
388
389         Reverted changeset:
390
391         "[iOS] Make WebCore build with public iOS SDK"
392         https://bugs.webkit.org/show_bug.cgi?id=136487
393         http://trac.webkit.org/changeset/173695
394
395 2014-09-17  Daniel Bates  <dabates@apple.com>
396
397         [iOS] Make WebCore build with public iOS SDK
398         https://bugs.webkit.org/show_bug.cgi?id=136487
399
400         Reviewed by David Kilzer.
401
402         Update WebKit1 source files to include the wrapper SPI headers instead of the corresponding
403         actual SPI header(s).
404
405         * DOM/WebDOMOperationsPrivate.h:
406         * MigrateHeaders.make: Modified to only modify the include path of a "<WebCore/"-prefixed header
407         file if its filename doesn't end in "SPI.h" as an alternative to having MigrateHeaders.make copy
408         such files into the WebKit framework as private headers.
409         * WebCoreSupport/WebFrameLoaderClient.mm:
410         * WebInspector/WebNodeHighlight.mm:
411         * WebView/WebIndicateLayer.mm:
412         * WebView/WebRenderLayer.h:
413         * WebView/WebView.mm:
414
415 2014-09-16  Daniel Bates  <dabates@apple.com>
416
417         [iOS] Add iOS SDK name and version suffix to WebKitSystemInterface debug/release product name
418         https://bugs.webkit.org/show_bug.cgi?id=136862
419
420         Reviewed by David Kilzer.
421
422         * Configurations/DebugRelease.xcconfig:
423
424 2014-09-16  Enrica Casucci  <enrica@apple.com>
425
426         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
427         https://bugs.webkit.org/show_bug.cgi?id=136474
428
429         Reviewed by Benjamin Poulain.
430
431         This is the updated version of the patch that was landed in r173340.
432         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
433         and removes the assumption that EAffinity values match NSSelectionAffinity
434         values. It also removes the includes in TextAffinity.h, creating the need to
435         include explicitly the files when necessary.
436
437         * WebCoreSupport/WebEditorClient.h:
438         (kit):
439         (core):
440
441 2014-09-14  Daniel Bates  <dabates@apple.com>
442
443         [iOS] Attempt to fix the iOS build after <http://trac.webkit.org/changeset/173606>
444         (https://bugs.webkit.org/show_bug.cgi?id=136789)
445
446         Substitute Node::countChildNodes() for Node::childNodeCount() in more places.
447
448         * WebView/WebFrame.mm:
449         (-[WebFrame focusedNodeHasContent]):
450
451 2014-09-14  Chris Dumez  <cdumez@apple.com>
452
453         Rename Node::childNodeCount() to countChildNodes() and avoid inefficient uses
454         https://bugs.webkit.org/show_bug.cgi?id=136789
455
456         Reviewed by Darin Adler.
457
458         Rename childNodeCount() to countChildNodes().
459
460         * WebView/WebHTMLView.mm:
461         (-[WebHTMLView attributedString]):
462
463 2014-09-10  Jon Honeycutt  <jhoneycutt@apple.com>
464
465         Re-add the request autocomplete feature
466
467         <https://bugs.webkit.org/show_bug.cgi?id=136730>
468
469         This feature was rolled out in r148731 because it was only used by
470         Chromium. As we consider supporting this feature, roll it back in, but
471         leave it disabled.
472
473         This rolls out r148731 (which removed the feature) with small changes
474         needed to make the code build in ToT, to match modern style, to make
475         the tests run, and to remove unused code.
476
477         Reviewed by Andy Estes.
478
479         * Configurations/FeatureDefines.xcconfig:
480         * WebCoreSupport/WebFrameLoaderClient.h:
481
482 2014-09-12  Commit Queue  <commit-queue@webkit.org>
483
484         Unreviewed, rolling out r173575.
485         https://bugs.webkit.org/show_bug.cgi?id=136790
486
487         Failing tests (Requested by enrica on #webkit).
488
489         Reverted changeset:
490
491         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
492         https://bugs.webkit.org/show_bug.cgi?id=136474
493         http://trac.webkit.org/changeset/173575
494
495 2014-09-12  Enrica Casucci  <enrica@apple.com>
496
497         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
498         https://bugs.webkit.org/show_bug.cgi?id=136474
499
500         Reviewed by Benjamin Poulain.
501
502         This is the updated version of the patch that was landed in r173340.
503         I changed the use of IntPoint to FloatPoint since it was causing tests
504         to fail.
505         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
506         and removes the assumption that EAffinity values match NSSelectionAffinity
507         values. It also removes the includes in TextAffinity.h, creating the need to
508         include explicitly the files when necessary. It also removes the unnecessary
509         use of platform specific types, replacing them with WebCore types.
510
511         * WebCoreSupport/WebEditorClient.h:
512         (kit):
513         (core):
514         * WebView/WebFrameView.mm:
515         (-[WebFrameView _scrollToBeginningOfDocument]):
516         (-[WebFrameView _scrollToEndOfDocument]):
517
518 2014-09-11  Bear Travis  <betravis@adobe.com>
519
520         [CSS Font Loading] Enable CSS Font Loading on Mac
521         https://bugs.webkit.org/show_bug.cgi?id=135473
522
523         Reviewed by Antti Koivisto.
524
525         Enable CSS Font Loading in FeatureDefines.
526
527         * Configurations/FeatureDefines.xcconfig:
528
529 2014-09-11  Beth Dakin  <bdakin@apple.com>
530
531         Support rubber-banding in sub-frames
532         https://bugs.webkit.org/show_bug.cgi?id=136726
533         -and corresponding-
534         rdar://problem/10011924
535
536         Reviewed by Tim Horton.
537
538         rubberBandingForOverflowScrollEnabled is re-named to
539         rubberBandingForSubScrollableRegionsEnabled
540         * WebView/WebView.mm:
541         (-[WebView _preferencesChanged:]):
542
543 2014-09-09  Benjamin Poulain  <bpoulain@apple.com>
544
545         Disable the "unreachable-code" warning
546         https://bugs.webkit.org/show_bug.cgi?id=136677
547
548         Reviewed by Darin Adler.
549
550         * Configurations/Base.xcconfig:
551
552 2014-09-08  Maciej Stachowiak  <mjs@apple.com>
553
554         Fix 32-bit Mac build for new warnings
555         https://bugs.webkit.org/show_bug.cgi?id=136624
556
557         Reviewed by Darin Adler.
558         
559         (Jessie already fixed this but my version with typedefs seems a tiny bit cleaner.)
560
561         * Carbon/HIViewAdapter.m:
562         (+[HIViewAdapter bindHIViewToNSView:nsView:]): Need to use explicit casting now.
563
564 2014-09-08  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
565
566         Remove FILTERS flag
567         https://bugs.webkit.org/show_bug.cgi?id=136571
568
569         Reviewed by Darin Adler.
570
571         * Configurations/FeatureDefines.xcconfig:
572
573 2014-09-08  Jessie Berlin  <jberlin@apple.com>
574
575         32-bit build fix after r173364.
576
577         * Carbon/HIViewAdapter.m:
578         (+[HIViewAdapter bindHIViewToNSView:nsView:]):
579
580 2014-09-08  Dan Bernstein  <mitz@apple.com>
581
582         Build fix.
583
584         Added back SPI that is still in use.
585
586         * Misc/WebNSURLExtras.h:
587         * Misc/WebNSURLExtras.mm:
588         (-[NSURL _webkit_URLByRemovingFragment]):
589
590 2014-09-08  Dan Bernstein  <mitz@apple.com>
591
592         iOS Simulator build fix.
593
594         * Misc/WebKitSystemBits.m:
595         (WebMemorySize):
596
597 2014-09-07  Darin Adler  <darin@apple.com>
598
599         Fix build failure seen on Mountain Lion buildbot.
600
601         * Misc/WebNSDataExtras.h: Make WEB_GUESS_MIME_TYPE_PEEK_LENGTH an unsigned instead
602         of an int, to avoid warning about mixing signs.
603
604 2014-09-06  Darin Adler  <darin@apple.com>
605
606         Make updates suggested by new version of Xcode
607         https://bugs.webkit.org/show_bug.cgi?id=136603
608
609         Reviewed by Mark Rowe.
610
611         * Configurations/Base.xcconfig: Added CLANG_WARN_UNREACHABLE_CODE, COMBINE_HIDPI_IMAGES,
612         and ENABLE_STRICT_OBJC_MSGSEND as suggested by Xcode upgrade check.
613
614         * History/WebURLsWithTitles.m:
615         (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]): Use NSUInteger instead of
616         unsigned for correctness, and to quiet the 32-to-64-bit compiler warning (which is
617         not turned on because it gives us too many false positives).
618         * Misc/WebElementDictionary.mm:
619         (-[WebElementDictionary objectForKey:]): Ditto.
620         * Misc/WebNSDataExtras.m:
621         (-[NSData _webkit_guessedMIMETypeForXML]): Ditto.
622         (-[NSData _webkit_guessedMIMEType]): Ditto.
623         (-[NSData _webkit_parseRFC822HeaderFields]): Ditto.
624         (-[NSData _web_locationAfterFirstBlankLine]): Ditto.
625
626         * Misc/WebNSURLExtras.h: Removed unused _web_URLWithLowercasedScheme, _web_hostData,
627         _webkit_URLByRemovingFragment, _webkit_URLByRemovingResourceSpecifier, _webkit_isFTPDirectoryURL,
628         _webkit_shouldLoadAsEmptyDocument, _web_hostNameNeedsDecodingWithRange:,
629         _web_hostNameNeedsEncodingWithRange:, _web_decodeHostNameWithRange:, _web_encodeHostNameWithRange:,
630         and _webkit_URLFragment methods.
631
632         * Misc/WebNSURLExtras.mm:
633         (-[NSURL _web_URLByTruncatingOneCharacterBeforeComponent:]): Deleted.
634         (-[NSURL _webkit_URLByRemovingFragment]): Deleted.
635         (-[NSURL _webkit_URLByRemovingResourceSpecifier]): Deleted.
636         (-[NSURL _webkit_isFTPDirectoryURL]): Deleted.
637         (-[NSURL _webkit_shouldLoadAsEmptyDocument]): Deleted.
638         (-[NSURL _web_URLWithLowercasedScheme]): Deleted.
639         (-[NSString _webkit_isFTPDirectoryURL]): Deleted.
640         (-[NSString _web_hostNameNeedsDecodingWithRange:]): Deleted.
641         (-[NSString _web_hostNameNeedsEncodingWithRange:]): Deleted.
642         (-[NSString _web_decodeHostNameWithRange:]): Deleted.
643         (-[NSString _web_encodeHostNameWithRange:]): Deleted.
644         (-[NSString _webkit_URLFragment]): Deleted.
645
646         * Plugins/WebPluginDatabase.mm:
647         (-[WebPluginDatabase removePluginInstanceViewsFor:]): Use a modern for loop
648         to iterate an array instead of a loop using the type "unsigned int".
649
650         * WebCoreSupport/WebOpenPanelResultListener.mm:
651         (-[WebOpenPanelResultListener chooseFilenames:]): Use NSUInteger instead of int.
652
653         * WebView/WebDelegateImplementationCaching.mm:
654         (CallDelegate): Use wtfCallIMP in one overload that was instead just calling the
655         directly without a proper type for the function pointer. This might have been causing
656         an actual problem on 64-bit systems, and it was different from all the other CallDelegate
657         functions that were already doing this correctly.
658
659         * WebView/WebTextCompletionController.mm:
660         (-[WebTextCompletionController _placePopupWindow:]): Use NSUInteger instead of int.
661
662 2014-09-06  Brian J. Burg  <burg@cs.washington.edu>
663
664         Web Inspector: convert DockSide to an enum class
665         https://bugs.webkit.org/show_bug.cgi?id=136601
666
667         Reviewed by Timothy Hatcher.
668
669         * WebCoreSupport/WebInspectorClient.mm:
670         (WebInspectorFrontendClient::frontendLoaded):
671         (-[WebInspectorWindowController attachWindow:]):
672         (-[WebInspectorWindowController attach]):
673         (-[WebInspectorWindowController detach]):
674         * WebInspector/WebInspectorFrontend.mm:
675         (-[WebInspectorFrontend attach]):
676
677 2014-09-05  Commit Queue  <commit-queue@webkit.org>
678
679         Unreviewed, rolling out r173340 and r173342.
680         https://bugs.webkit.org/show_bug.cgi?id=136596
681
682         Broke many tests (Requested by ap on #webkit).
683
684         Reverted changesets:
685
686         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
687         https://bugs.webkit.org/show_bug.cgi?id=136474
688         http://trac.webkit.org/changeset/173340
689
690         "Build fix after r173340."
691         http://trac.webkit.org/changeset/173342
692
693 2014-09-05  Enrica Casucci  <enrica@apple.com>
694
695         Build fix after r173340.
696
697         * WebCoreSupport/WebEditorClient.h:
698         (kit):
699         (core):
700
701 2014-09-05  Enrica Casucci  <enrica@apple.com>
702
703         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
704         https://bugs.webkit.org/show_bug.cgi?id=136474
705
706         Reviewed by Benjamin Poulain.
707
708         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
709         and removes the assumption that EAffinity values match NSSelectionAffinity
710         values. It also removes the includes in TextAffinity.h, creating the need to
711         include explicitly the files when necessary. It also removes the unnecessary
712         use of platform specific types, replacing them with WebCore types.
713
714         * WebCoreSupport/WebEditorClient.h: Added kit and core for EAffinity.
715         * WebView/WebFrameView.mm:
716         (-[WebFrameView _scrollToBeginningOfDocument]):
717         (-[WebFrameView _scrollToEndOfDocument]):
718
719 2014-09-05  Daniel Bates  <dabates@apple.com>
720
721         [iOS] Another attempt to fix the iOS build after <http://trac.webkit.org/changeset/173309>
722         (https://bugs.webkit.org/show_bug.cgi?id=136564)
723
724         Move #endif inside -viewDidMoveToWindow up one line such that the closing brace ('}') is after it.
725
726         * WebView/WebHTMLView.mm:
727         (-[WebHTMLView viewDidMoveToWindow]):
728
729 2014-09-05  Daniel Bates  <dabates@apple.com>
730
731         [iOS] Another attempt to fix the iOS build after <http://trac.webkit.org/changeset/173309>
732         (https://bugs.webkit.org/show_bug.cgi?id=136564)
733
734         Add !PLATFORM(IOS)-guard in -viewDidMoveToWindow around code that references WebHTMLViewPrivate.flagsChangedEventMonitor.
735         The instance variable WebHTMLViewPrivate.flagsChangedEventMonitor is guarded by !PLATFORM(IOS).
736
737         * WebView/WebHTMLView.mm:
738         (-[WebHTMLView viewDidMoveToWindow]):
739
740 2014-09-05  Daniel Bates  <dabates@apple.com>
741
742         [iOS] Fix the iOS build after <http://trac.webkit.org/changeset/173309>
743         (https://bugs.webkit.org/show_bug.cgi?id=136564)
744
745         Include more code inside the !PLATFORM(IOS)-guarded section in -setDataSource:.
746
747         * WebView/WebHTMLView.mm:
748         (-[WebHTMLView setDataSource:]):
749
750 2014-09-04  Maciej Stachowiak  <mjs@apple.com>
751
752         Use tracking areas instead of (SPI) mouse moved notifications, and follow flags changes with an event monitor
753         https://bugs.webkit.org/show_bug.cgi?id=136564
754
755         Reviewed by Dan Bernstein.
756         
757         WebKit1 depended on mouse moved event notifications to track mouse
758         moves, and on being specially called by Safari to track flags
759         changes. WebKit2 does both these things better - it uses a tracking area
760         and event monitors. Copy those approaches.
761
762         * WebKit.order: Remove reference to obsolete call.
763         * WebView/WebHTMLView.mm:
764         (-[WebHTMLViewPrivate dealloc]): No need to deallocate tracking
765         area, since we now just always have one.
766         (-[WebHTMLViewPrivate clear]): ditto
767         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
768         New method that posts a fake mouse move event in response to
769         a flags change event, for use by the event monitor.
770         (+[WebHTMLView _postFlagsChangedEvent:]): Empty this old call,
771         still kept around for benefit of older Safari.
772         (-[WebHTMLView _updateMouseoverWithEvent:]): Handle Dashboard's
773         special mouseover mode (previously handled in a weird way).
774         (-[WebHTMLView close]): No more need to mess with mouse moved observer.
775         (-[WebHTMLView viewWillMoveToWindow:]): ditto
776         (-[WebHTMLView viewDidMoveToWindow]): ditto; but now hook up a flags
777         changed monitor.
778         (-[WebHTMLView windowDidBecomeKey:]): No need to handle non-key window
779         tracking area or mouse moved observer.
780         (-[WebHTMLView windowDidResignKey:]): ditto
781         (-[WebHTMLView windowWillOrderOnScreen:]): No need to mess with mouse
782         moved observer.
783         (-[WebHTMLView windowWillOrderOffScreen:]): ditto
784         (-[WebHTMLView mouseMoved:]): Converted from the old mouseMovedNotification:
785         (-[WebHTMLView setDataSource:]): Change if around body to early return. Hook
786         up tracking area - we have to do it here, because before this point, the
787         WebHTMLView does not know its WebView, which is where dashboard settings
788         live.
789         (-[WebHTMLView _removeMouseMovedObserverUnconditionally]): Deleted.
790         (-[WebHTMLView addMouseMovedObserver]): Deleted.
791         (-[WebHTMLView removeMouseMovedObserver]): Deleted.
792
793 2014-09-04  Pratik Solanki  <psolanki@apple.com>
794
795         Bring back [WebPreferences setDiskImageCacheEnabled:] for backwards compatibility
796         https://bugs.webkit.org/show_bug.cgi?id=136560
797
798         Reviewed by Joseph Pecoraro.
799
800         I removed the disk image caching code in r173265. However, we still have clients that call
801         setDiskImageCacheEnabled. Add in a stub method until we can wean the clients off this call.
802
803         * WebView/WebPreferences.mm:
804         (-[WebPreferences setDiskImageCacheEnabled:]):
805         * WebView/WebPreferencesPrivate.h:
806
807 2014-09-03  Andy Estes  <aestes@apple.com>
808
809         [Cocoa] Some WebKitLegacy headers migrated from WebCore incorrectly contain WEBCORE_EXPORT
810         https://bugs.webkit.org/show_bug.cgi?id=136521
811
812         Reviewed by Anders Carlsson.
813
814         Taught MigrateHeaders.make to remove WEBCORE_EXPORT from headers using this sed expression:
815
816             s/(^ *)WEBCORE_EXPORT /\1/g
817
818         This removes WEBCORE_EXPORT and a single following space character but preserves preceeding spaces.
819
820         * MigrateHeaders.make:
821
822 2014-09-04  Maciej Stachowiak  <mjs@apple.com>
823
824         Remove WebCoreSystemInterface glue for otherwise unused WKSI calls
825         https://bugs.webkit.org/show_bug.cgi?id=136527
826
827         Reviewed by Alexey Proskuryakov.
828
829         * WebCoreSupport/WebSystemInterface.mm:
830         (InitWebCoreSystemInterface):
831
832 2014-09-04  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
833
834         Remove CSS_FILTERS flag
835         https://bugs.webkit.org/show_bug.cgi?id=136529
836
837         Reviewed by Dirk Schulze.
838
839         * Configurations/FeatureDefines.xcconfig:
840
841 2014-09-04  Pratik Solanki  <psolanki@apple.com>
842
843         Remove iOS specific disk image cache
844         https://bugs.webkit.org/show_bug.cgi?id=136517
845
846         Reviewed by Antti Koivisto.
847
848         Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
849         this now since we don't enable it in WebKit2 on iOS.
850
851         * Misc/WebCache.mm:
852         (+[WebCache statistics]):
853         * WebView/WebDataSource.mm:
854         (-[WebDataSource _setAllowToBeMemoryMapped]):
855         (-[WebDataSource setDataSourceDelegate:]):
856         (-[WebDataSource dataSourceDelegate]):
857         (-[WebDataSource dealloc]):
858         (BufferMemoryMapped): Deleted.
859         * WebView/WebPreferenceKeysPrivate.h:
860         * WebView/WebPreferences.mm:
861         (+[WebPreferences initialize]):
862         (-[WebPreferences diskImageCacheEnabled]): Deleted.
863         (-[WebPreferences setDiskImageCacheEnabled:]): Deleted.
864         (-[WebPreferences diskImageCacheMinimumImageSize]): Deleted.
865         (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Deleted.
866         (-[WebPreferences diskImageCacheMaximumCacheSize]): Deleted.
867         (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Deleted.
868         (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Deleted.
869         (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Deleted.
870         * WebView/WebPreferencesPrivate.h:
871         * WebView/WebView.mm:
872         (-[WebView _commonInitializationWithFrameName:groupName:]):
873         (+[WebView _handleMemoryWarning]):
874         (-[WebView _preferencesChanged:]):
875
876 2014-09-04  Daniel Bates  <dabates@apple.com>
877
878         [iOS] Make iOS build when ENABLE_TOUCH_EVENT and ENABLE_IOS_TOUCH_EVENTS disabled
879         https://bugs.webkit.org/show_bug.cgi?id=136494
880
881         Reviewed by Andy Estes.
882
883         * MigrateHeaders.make: Migrate header WebEventRegion.h only when ENABLE_IOS_TOUCH_EVENTS is defined.
884         * WebView/WebView.mm: Substitute ENABLE(IOS_TOUCH_EVENTS) for ENABLE(TOUCH_EVENTS).
885
886 2014-09-02  Brian J. Burg  <burg@cs.washington.edu>
887
888         Web Inspector: fix prefixes for subclasses of JSC::ConsoleClient
889         https://bugs.webkit.org/show_bug.cgi?id=136476
890
891         Reviewed by Timothy Hatcher.
892
893         * Misc/WebCoreStatistics.mm:
894         (+[WebCoreStatistics shouldPrintExceptions]):
895         (+[WebCoreStatistics setShouldPrintExceptions:]):
896
897 2014-09-03  Enrica Casucci  <enrica@apple.com>
898
899         Remove PLATFORM(IOS) from WebCore/editing (Part 1).
900         https://bugs.webkit.org/show_bug.cgi?id=136474
901
902         Reviewed by Tim Horton.
903
904         * WebCoreSupport/WebEditorClient.mm:
905         (undoNameForEditAction):
906
907 2014-09-02  Maciej Stachowiak  <mjs@apple.com>
908
909         Clean up naming for and slightly refactor legacy video fullscreen support
910         https://bugs.webkit.org/show_bug.cgi?id=136446
911
912         Reviewed by Jer Noble.
913
914         Key changes:
915         supportsFullscreenForNode(Node*) --> supportsVideoFullscreen()
916         enterFullscreenForNode(Node*) --> enterVideoFullscreenForVideoElement(HTMLVideoElement*)
917         exitFullscreenForNode(Node*) --> exitVideoFullscreen()
918         
919         The old versions had unnecessary parameters, did not clearly distinguish their purpose
920         from enterFullscreenForElement and friends, and wrongly claimed generality to all Nodes.
921         Also changed many other places to use HTMLVideoElement* instead of Node* or 
922         HTMLMediaElement* when they were in fact only used for video elements and would only
923         work for such.
924
925         * WebCoreSupport/WebChromeClient.h:
926         * WebCoreSupport/WebChromeClient.mm:
927         (WebChromeClient::supportsVideoFullscreen): Adjust for main refactoring.
928         Also no more need to check for video elementness.
929         (WebChromeClient::enterVideoFullscreenForVideoElement): Adjust for main refactoring.
930         (WebChromeClient::exitVideoFullscreen): ditto
931         * WebView/WebView.mm:
932         (-[WebView _enterVideoFullscreenForVideoElement:]): Adjust for main
933         refactoring.
934         (-[WebView _exitVideoFullscreen]): ditto
935         (-[WebView _close]): ditto
936         * WebView/WebViewInternal.h:
937
938 2014-09-03  Dan Bernstein  <mitz@apple.com>
939
940         Get rid of HIGH_DPI_CANVAS leftovers
941         https://bugs.webkit.org/show_bug.cgi?id=136491
942
943         Reviewed by Benjamin Poulain.
944
945         * Configurations/FeatureDefines.xcconfig: Removed definition of ENABLE_HIGH_DPI_CANVAS
946         and removed it from FEATURE_DEFINES.
947
948 2014-08-31  Tim Horton  <timothy_horton@apple.com>
949
950         Remove unnecessary (and unnecessarily iOS-specific) setStrokeAndFillColor
951         https://bugs.webkit.org/show_bug.cgi?id=136416
952
953         Reviewed by Dan Bernstein.
954
955         * WebView/WebFrameView.mm:
956         (-[WebFrameView drawRect:]):
957         We only end up filling, so only set the fill color.
958
959 2014-08-26  Maciej Stachowiak  <mjs@apple.com>
960
961         Use RetainPtr::autorelease in some places where it seems appropriate
962         https://bugs.webkit.org/show_bug.cgi?id=136280
963
964         Reviewed by Darin Adler.
965
966         * WebView/WebHTMLView.mm:
967         (imageFromRect): Use RetainPtr in this function.
968         * WebView/WebPDFRepresentation.mm:
969         (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Use RetainPtr
970         in this method.
971
972 2014-08-29  Csaba Osztrogonác  <ossy@webkit.org>
973
974         Unreviwed, remove empty directories.
975
976         * ForwardingHeaders/wtf: Removed.
977
978 2014-08-27  Zalan Bujtas  <zalan@apple.com>
979
980         Subpixel layout: Rename LayoutRect's device pixel snapping functions.
981         https://bugs.webkit.org/show_bug.cgi?id=136319
982
983         Reviewed by Simon Fraser.
984
985         From pixelSnappedForPainting() to snapRectToDevicePixels() and 
986         pixelSnappedIntRect*() to snappedIntRect*().
987
988         No change in functionality.
989
990         * WebView/WebView.mm:
991         (-[WebView _dashboardRegions]):
992         (-[WebView trackedRepaintRects]):
993
994 2014-08-25  Maciej Stachowiak  <mjs@apple.com>
995
996         Replace use of WKCopyCFLocalizationPreferredName with NSLocale public API
997         https://bugs.webkit.org/show_bug.cgi?id=136082
998
999         Reviewed by Alexey Proskuryakov.
1000
1001         * Plugins/Hosted/NetscapePluginHostManager.mm:
1002         (WebKit::NetscapePluginHostManager::spawnPluginHost): Get current
1003         localization name using WebCore helper instead of SPI.
1004         * Plugins/WebBasePluginPackage.mm: Fixed the include style for this 
1005         file.
1006         (-[WebBasePluginPackage getPluginInfoFromPLists]): Get current
1007         localization name using WebCore helper instead of SPI.
1008         (+[WebBasePluginPackage preferredLocalizationName]): Deleted. This
1009         helper no longer pulls its weight.
1010         * WebCoreSupport/WebSystemInterface.mm: 
1011         (InitWebCoreSystemInterface): Remove mention of
1012         WKCopyCFLocalizationPreferredName.
1013         * WebKit.order: ditto
1014
1015 2014-08-25  Daniel Bates  <dabates@apple.com>
1016
1017         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/172889>
1018         (https://bugs.webkit.org/show_bug.cgi?id=109658)
1019
1020         Substitute GraphicsLayer::setContentsToPlatformLayer(..., GraphicsLayer::ContentsLayerForMedia)
1021         for GraphicsLayer::setContentsToMedia(...) because the latter was removed in <http://trac.webkit.org/changeset/172889>.
1022
1023         * WebView/WebView.mm:
1024         (-[WebView _setMediaLayer:forPluginView:]):
1025
1026 2014-08-22  Commit Queue  <commit-queue@webkit.org>
1027
1028         Unreviewed, rolling out r172866.
1029         https://bugs.webkit.org/show_bug.cgi?id=136177
1030
1031         Broke iOS build (Requested by othermaciej on #webkit).
1032
1033         Reverted changeset:
1034
1035         "Replace use of WKCopyCFLocalizationPreferredName with
1036         NSLocale public API"
1037         https://bugs.webkit.org/show_bug.cgi?id=136082
1038         http://trac.webkit.org/changeset/172866
1039
1040 2014-08-22  Simon Fraser  <simon.fraser@apple.com>
1041
1042         Implement paint flashing in the WK1 InspectorOverlay page
1043         https://bugs.webkit.org/show_bug.cgi?id=136138
1044
1045         Reviewed by Sam Weinig, Joseph Pecoraro.
1046
1047         Implement paint flashing for the WebKit1 InspectorOverlay via a second canvas in the overlay page.
1048         We avoid allocating backing store for this canvas until we have paint rects.
1049         
1050         Because this overlay page is weird and doesn't know how to paint itself, InspectorOverlay manages
1051         an array of rects, and pushes them to the page when they change, before forcing a paint.
1052         
1053         Because iOS doesn't use the InspectorOverlay page, stub out setShowPaintRects on its
1054         WebKit WebInspectorClient, but don't yet implement paint flashing there.
1055
1056         * WebCoreSupport/WebInspectorClient.h:
1057         * WebCoreSupport/WebInspectorClient.mm:
1058         (WebInspectorClient::WebInspectorClient):
1059
1060 2014-08-20  Maciej Stachowiak  <mjs@apple.com>
1061
1062         Replace use of WKCopyCFLocalizationPreferredName with NSLocale public API
1063         https://bugs.webkit.org/show_bug.cgi?id=136082
1064
1065         Reviewed by Alexey Proskuryakov.
1066
1067         * Plugins/Hosted/NetscapePluginHostManager.mm:
1068         (WebKit::NetscapePluginHostManager::spawnPluginHost): Get current
1069         localization name using WebCore helper instead of SPI.
1070         * Plugins/WebBasePluginPackage.mm: Fixed the include style for this 
1071         file.
1072         (-[WebBasePluginPackage getPluginInfoFromPLists]): Get current
1073         localization name using WebCore helper instead of SPI.
1074         (+[WebBasePluginPackage preferredLocalizationName]): Deleted. This
1075         helper no longer pulls its weight.
1076         * WebCoreSupport/WebSystemInterface.mm: 
1077         (InitWebCoreSystemInterface): Remove mention of
1078         WKCopyCFLocalizationPreferredName.
1079         * WebKit.order: ditto
1080
1081 2014-08-22  Daniel Bates  <dabates@apple.com>
1082
1083         [iOS] Disable ENABLE_IOS_{GESTURE, TOUCH}_EVENTS, and temporarily disable ENABLE_TOUCH_EVENTS
1084         and ENABLE_XSLT when building with the iOS public SDK
1085         https://bugs.webkit.org/show_bug.cgi?id=135945
1086
1087         Reviewed by Andy Estes.
1088
1089         * Configurations/FeatureDefines.xcconfig: Disable ENABLE_IOS_{GESTURE, TOUCH}_EVENTS, ENABLE_TOUCH_EVENTS
1090         and ENABLE_XSLT when building with the public SDK.
1091         * MigrateHeaders.make: Conditionally migrate headers for touch and gesture events.
1092
1093 2014-08-22  Jon Lee  <jonlee@apple.com>
1094
1095         Fix iOS build due to r172832 and move RUBBER_BANDING out of FeatureDefines.h
1096         https://bugs.webkit.org/show_bug.cgi?id=136157
1097
1098         Reviewed by Simon Fraser.
1099
1100         * Configurations/FeatureDefines.xcconfig: Add ENABLE(RUBBER_BANDING).
1101         * WebView/WebView.mm:
1102         (-[WebView _preferencesChanged:]): Wrap in ENABLE(RUBBER_BANDING).
1103
1104 2014-08-21  Zalan Bujtas  <zalan@apple.com>
1105
1106         Enable SATURATED_LAYOUT_ARITHMETIC.
1107         https://bugs.webkit.org/show_bug.cgi?id=136106
1108
1109         Reviewed by Simon Fraser.
1110
1111         SATURATED_LAYOUT_ARITHMETIC protects LayoutUnit against arithmetic overflow.
1112         (No measurable performance regression on Mac.)
1113
1114         * Configurations/FeatureDefines.xcconfig:
1115
1116 2014-08-21  Beth Dakin  <bdakin@apple.com>
1117
1118         overflow:scroll elements should support rubber-banding
1119         https://bugs.webkit.org/show_bug.cgi?id=91655
1120
1121         Reviewed by Sam Weinig and Darin Adler.
1122
1123         Disable rubber-banding in overflow areas for now.
1124         * WebView/WebView.mm:
1125         (-[WebView _preferencesChanged:]):
1126
1127 2014-08-19  Pratik Solanki  <psolanki@apple.com>
1128
1129         Remove PurgeableBuffer since it is not very useful any more
1130         https://bugs.webkit.org/show_bug.cgi?id=135939
1131
1132         Reviewed by Andreas Kling.
1133
1134         * Misc/WebCache.mm:
1135         (+[WebCache statistics]):
1136
1137 2014-08-19  Zalan Bujtas  <zalan@apple.com>
1138
1139         Remove ENABLE(SUBPIXEL_LAYOUT).
1140         https://bugs.webkit.org/show_bug.cgi?id=136077
1141
1142         Reviewed by Simon Fraser.
1143
1144         Remove compile time flag SUBPIXEL_LAYOUT. All ports have it enabled for a while now.
1145
1146         * Configurations/FeatureDefines.xcconfig:
1147
1148 2014-08-18  Maciej Stachowiak  <mjs@apple.com>
1149
1150         Use NSURLFileTypeMappings directly instead of depending on WebKitSystemInterface wrappers for it
1151         https://bugs.webkit.org/show_bug.cgi?id=136035
1152
1153         Reviewed by Dan Bernstein.
1154
1155         * Misc/WebNSViewExtras.m:
1156         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]): Remove comment
1157         reference to obsolete WKSI function.
1158         * WebCoreSupport/WebSystemInterface.mm:
1159         (InitWebCoreSystemInterface): Don't initialize the no-longer-used WKGetExtensionsForMIMEType,
1160         WKGetPreferredExtensionForMIMEType, or WKGetMIMETypeForExtension
1161         * Plugins/WebPluginDatabase.mm:
1162         (-[WebPluginDatabase pluginForExtension:]): Include SPI header from WebCore; use
1163         NSURLFileTypeMappings directly instead of via WKSI wrapper.
1164         * WebCoreSupport/WebFrameLoaderClient.mm:
1165         (WebFrameLoaderClient::objectContentType): ditto
1166         * WebView/WebHTMLView.mm:
1167         (-[WebHTMLView _imageExistsAtPaths:]): ditto
1168         * WebView/WebView.mm:
1169         (+[WebView _supportedFileExtensions]): ditto
1170         (+[WebView suggestedFileExtensionForMIMEType:]): ditto
1171         (+[WebView _MIMETypeForFile:]): ditto
1172
1173 2014-08-18  Commit Queue  <commit-queue@webkit.org>
1174
1175         Unreviewed, rolling out r172736.
1176         https://bugs.webkit.org/show_bug.cgi?id=136060
1177
1178         Caused 14% PLT regressions (Requested by rniwa on #webkit).
1179
1180         Reverted changeset:
1181
1182         "Remove PurgeableBuffer since it is not very useful any more"
1183         https://bugs.webkit.org/show_bug.cgi?id=135939
1184         http://trac.webkit.org/changeset/172736
1185
1186 2014-08-18  Pratik Solanki  <psolanki@apple.com>
1187
1188         Remove PurgeableBuffer since it is not very useful any more
1189         https://bugs.webkit.org/show_bug.cgi?id=135939
1190
1191         Reviewed by Geoffrey Garen.
1192
1193         * Misc/WebCache.mm:
1194         (+[WebCache statistics]):
1195
1196 2014-08-18  Andy Estes  <aestes@apple.com>
1197
1198         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
1199         https://bugs.webkit.org/show_bug.cgi?id=136010
1200
1201         Reviewed by Darin Adler.
1202
1203         * Misc/WebKitVersionChecks.h: Removed WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION.
1204         * WebView/WebPDFView.mm:
1205         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Passed AllowNavigationToInvalidURL::Yes to FrameLoader::loadFrameRequest.
1206         * WebView/WebView.mm:
1207         (-[WebView _preferencesChanged:]): Reverted the linked-on-or-after check added in r170120 since it's no longer necessary.
1208
1209 2014-08-18  Andy Estes  <aestes@apple.com>
1210
1211         Revert r172697.
1212
1213         It made several webarchive layout tests flaky and didn't have the correct behavior for non-quick redirects.
1214
1215         * Misc/WebKitVersionChecks.h:
1216         * WebView/WebView.mm:
1217         (-[WebView _preferencesChanged:]):
1218
1219 2014-08-15  Andy Estes  <aestes@apple.com>
1220
1221         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
1222         https://bugs.webkit.org/show_bug.cgi?id=136010
1223
1224         Reviewed by Darin Adler.
1225
1226         Reverted the linked-on-or-after check added in r170120 since it is no longer necessary.
1227
1228         * Misc/WebKitVersionChecks.h:
1229         * WebView/WebView.mm:
1230         (-[WebView _preferencesChanged:]):
1231
1232 2014-08-16  Maciej Stachowiak  <mjs@apple.com>
1233
1234         Remove the obsolete WebKitEnableCoalescedUpdatesPreferenceKey
1235         https://bugs.webkit.org/show_bug.cgi?id=136024
1236
1237         Reviewed by Filip Pizlo.
1238
1239         * WebView/WebFrameView.mm:
1240         (-[WebFrameView initWithFrame:]): Remove code that respects
1241         this key. It was SPI and is no longer used; also it was
1242         only relevant for versions of OS X that WebKit no longer supports.
1243         * WebView/WebPreferenceKeysPrivate.h: Remove declaration.
1244
1245 2014-08-15  Daniel Bates  <dabates@apple.com>
1246
1247         [iOS] Teach postprocess-headers.sh to remove code guarded by ENABLE_IOS_GESTURE_EVENTS
1248         and ENABLE_TOUCH_EVENTS if applicable
1249         https://bugs.webkit.org/show_bug.cgi?id=135993
1250
1251         Reviewed by Andy Estes.
1252
1253         Add support infrastructure to remove code from public and private API headers that is
1254         guarded by macro define ENABLE_{IOS_GESTURE, TOUCH}_EVENTS when these features are disabled.
1255
1256         We aren't using this functionality yet, but we will soon.
1257
1258         * postprocess-headers.sh:
1259
1260 2014-08-13  Wenson Hsieh  <wenson_hsieh@apple.com>
1261
1262         Enable CSS_SCROLL_SNAP for iOS
1263         https://bugs.webkit.org/show_bug.cgi?id=135915
1264
1265         Turn on CSS_SCROLL_SNAP for iOS and the iOS simulator.
1266
1267         Reviewed by Tim Horton.
1268
1269         * Configurations/FeatureDefines.xcconfig:
1270
1271 2014-08-13  Mark Rowe  <mrowe@apple.com>
1272
1273         <https://webkit.org/b/135911> WebKit should build on Yosemite with the public SDK.
1274
1275         Reviewed by Darin Adler.
1276
1277         * Misc/WebSharingServicePickerController.mm: Forward-declare some details related to NSSharingServicePicker.
1278
1279 2014-08-13  Timothy Hatcher  <timothy@apple.com>
1280
1281         Web Inspector: Workaround a NSWindow change to the title bar.
1282         https://bugs.webkit.org/show_bug.cgi?id=135880
1283
1284         Reviewed by Joseph Pecoraro.
1285
1286         * WebCoreSupport/WebInspectorClient.mm:
1287         (WebInspectorFrontendClient::setToolbarHeight): Only call setContentBorderThickness: on 10.9 and earlier.
1288         (-[WebInspectorWindowController init]): Only call setDrawsBackground: on 10.9 and earlier.
1289         (-[WebInspectorWindowController window]): Set titlebarAppearsTransparent on 10.10.
1290         Only call border thickness APIs on 10.9 and earlier.
1291
1292 2014-08-12  Peyton Randolph  <prandolph@apple.com>
1293
1294         Runtime switch for long mouse press gesture. Part of 135257 - Add long mouse press gesture.           
1295         https://bugs.webkit.org/show_bug.cgi?id=135682
1296
1297         Reviewed by Tim Horton.
1298
1299         * Configurations/FeatureDefines.xcconfig:
1300         Remove LONG_MOUSE_PRESS feature flag.
1301
1302 2014-08-11  Andy Estes  <aestes@apple.com>
1303
1304         [iOS] Get rid of iOS.xcconfig
1305         https://bugs.webkit.org/show_bug.cgi?id=135809
1306
1307         Reviewed by Joseph Pecoraro.
1308
1309         All iOS.xcconfig did was include AspenFamily.xcconfig, so there's no need for the indirection.
1310
1311         * Configurations/Base.xcconfig:
1312         * Configurations/iOS.xcconfig: Removed.
1313
1314 2014-08-10  Timothy Hatcher  <timothy@apple.com>
1315
1316         Web Inspector: new glyphs are visible on OS X 10.9 builds
1317         https://bugs.webkit.org/show_bug.cgi?id=135743
1318
1319         Reviewed by Joseph Pecoraro.
1320
1321         * WebCoreSupport/WebInspectorClient.mm:
1322         (-[WebInspectorWindowController window]): Use 10100 instead of 1090 for the version.
1323
1324 2014-08-07  Benjamin Poulain  <bpoulain@apple.com>
1325
1326         Get rid of SCRIPTED_SPEECH
1327         https://bugs.webkit.org/show_bug.cgi?id=135729
1328
1329         Reviewed by Brent Fulgham.
1330
1331         * Configurations/FeatureDefines.xcconfig:
1332
1333 2014-08-07  Benjamin Poulain  <bpoulain@apple.com>
1334
1335         Get rid of INPUT_SPEECH
1336         https://bugs.webkit.org/show_bug.cgi?id=135672
1337
1338         Reviewed by Andreas Kling.
1339
1340         * Configurations/FeatureDefines.xcconfig:
1341
1342 2014-08-07  Timothy Hatcher  <timothy@apple.com>
1343
1344         Web Inspector: Update glyphs to be more like Xcode 6
1345         https://bugs.webkit.org/show_bug.cgi?id=135705
1346
1347         Reviewed by Joseph Pecoraro.
1348
1349         * Resources/Dock.pdf: Added.
1350         * Resources/DockLegacy.pdf: Copied from Source/WebKit/mac/Resources/Dock.pdf.
1351         * WebCoreSupport/WebInspectorClient.mm:
1352         (-[WebInspectorWindowController window]): Use new images.
1353
1354 2014-08-06  Dean Jackson  <dino@apple.com>
1355
1356         ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED is not used anywhere. Remove it.
1357         https://bugs.webkit.org/show_bug.cgi?id=135675
1358
1359         Reviewed by Sam Weinig.
1360
1361         * Configurations/FeatureDefines.xcconfig:
1362
1363 2014-08-06  Wenson Hsieh  <wenson_hsieh@apple.com>
1364
1365         Implement parsing for CSS scroll snap points
1366         https://bugs.webkit.org/show_bug.cgi?id=134301
1367
1368         Reviewed by Dean Jackson.
1369
1370         * Configurations/FeatureDefines.xcconfig: Added ENABLE_CSS_SCROLL_SNAP
1371
1372 2014-08-06  Alexey Proskuryakov  <ap@apple.com>
1373
1374         REGRESSION (WebKit2): iOS Safari default encoding doesn't follow system language
1375         https://bugs.webkit.org/show_bug.cgi?id=135667
1376         <rdar://problem/17862892>
1377
1378         Reviewed by Anders Carlsson.
1379
1380         * WebView/WebPreferences.mm: (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
1381         Moved implementation to WebCore, so that it can be shared with WebKit2.
1382
1383         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface):
1384         We now use WKGetWebDefaultCFStringEncoding in WebCore, so it needs to be initialized.
1385
1386 2014-08-05  Peyton Randolph  <prandolph@apple.com>
1387
1388         Rename MAC_LONG_PRESS feature flag to LONG_MOUSE_PRESS.
1389         https://bugs.webkit.org/show_bug.cgi?id=135276
1390
1391         Reviewed by Beth Dakin.
1392
1393         * Configurations/FeatureDefines.xcconfig:
1394
1395 2014-08-04  Benjamin Poulain  <benjamin@webkit.org>
1396
1397         Add a flag for the CSS Selectors level 4 implementation
1398         https://bugs.webkit.org/show_bug.cgi?id=135535
1399
1400         Reviewed by Andreas Kling.
1401
1402         * Configurations/FeatureDefines.xcconfig:
1403
1404 2014-08-04  Benjamin Poulain  <bpoulain@apple.com>
1405
1406         Check for null frame when processing geolocation authorization request
1407         https://bugs.webkit.org/show_bug.cgi?id=135577
1408         <rdar://problem/17896295>
1409
1410         Reviewed by Geoffrey Garen.
1411
1412         * WebCoreSupport/WebGeolocationClient.mm:
1413         (WebGeolocationClient::requestPermission):
1414
1415 2014-08-02  Jeremy Jones  <jeremyj@apple.com>
1416
1417         Support both window and view based video fullscreen.
1418         https://bugs.webkit.org/show_bug.cgi?id=135525
1419
1420         Reviewed by Simon Fraser.
1421
1422         Parenting in the view instead of the window gives the fullscreen implementation more latitude 
1423         in how it implements the animation.
1424
1425         * WebView/WebView.mm:
1426         (-[WebView _enterFullscreenForNode:]): Use view instead of window.
1427
1428 2014-08-01  Dan Bernstein  <mitz@apple.com>
1429
1430         <rdar://problem/17891752> [iOS] WebKit links against libraries it doesn’t use
1431         https://bugs.webkit.org/show_bug.cgi?id=135536
1432
1433         Reviewed by Tim Horton.
1434
1435         * Configurations/WebKitLegacy.xcconfig: Removed -framework MobileAsset from
1436         OTHER_LDFLAGS_iphoneos.
1437
1438 2014-07-30  Andy Estes  <aestes@apple.com>
1439
1440         USE(CONTENT_FILTERING) should be ENABLE(CONTENT_FILTERING)
1441         https://bugs.webkit.org/show_bug.cgi?id=135439
1442
1443         Reviewed by Tim Horton.
1444
1445         We now support two different platform content filters, and will soon support a mock content filter (as part of
1446         webkit.org/b/128858). This makes content filtering a feature of WebKit, not just an adoption of a third-party
1447         library. ENABLE() is the correct macro to use for such a feature.
1448
1449         * Configurations/FeatureDefines.xcconfig:
1450
1451 2014-07-30  Andreas Kling  <akling@apple.com>
1452
1453         Static hash tables no longer need to be coupled with a VM.
1454         <https://webkit.org/b/135421>
1455
1456         Reviewed by Geoffrey Garen.
1457
1458         * Plugins/Hosted/ProxyInstance.mm:
1459         * Plugins/Hosted/ProxyRuntimeObject.mm:
1460
1461 2014-07-30  Dan Bernstein  <mitz@apple.com>
1462
1463         Updated for changes to the WebCore::Credential API.
1464         Work towards fixing https://bugs.webkit.org/show_bug.cgi?id=135327
1465
1466         Reviewed by Alexey Proskuryakov.
1467
1468         * Misc/WebDownload.mm:
1469         (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]): Use new nsCredential
1470         getter.
1471         * Plugins/WebBaseNetscapePluginView.mm:
1472         (WebKit::getAuthenticationInfo): Ditto.
1473
1474 2014-07-27  Pratik Solanki  <psolanki@apple.com>
1475
1476         Remove unused preference keys
1477         https://bugs.webkit.org/show_bug.cgi?id=135280
1478
1479         Reviewed by Darin Adler.
1480
1481         * WebView/WebPreferenceKeysPrivate.h:
1482         * WebView/WebPreferences.mm:
1483         (+[WebPreferences initialize]):
1484         (-[WebPreferences _setPageCacheSize:]): Deleted.
1485         (-[WebPreferences _pageCacheSize]): Deleted.
1486         (-[WebPreferences _setObjectCacheSize:]): Deleted.
1487         (-[WebPreferences _objectCacheSize]): Deleted.
1488         * WebView/WebPreferencesPrivate.h:
1489
1490 2014-07-27  Filip Pizlo  <fpizlo@apple.com>
1491
1492         Merge r170090, r170092, r170129, r170141, r170161, r170215, r170275, r170375, r170376, r170382, r170383, r170399, r170436, r170489, r170490, r170556 from ftlopt.
1493
1494     2014-07-25  Mark Lam  <mark.lam@apple.com>
1495     
1496             [ftlopt] Renamed DebuggerActivation to DebuggerScope.
1497             <https://webkit.org/b/134273>
1498     
1499             Reviewed by Michael Saboff.
1500     
1501             * WebView/WebScriptDebugDelegate.mm:
1502             - Removed unneeded #include.
1503     
1504 2014-07-26  Filip Pizlo  <fpizlo@apple.com>
1505
1506         Unreviewed, roll out r171641-r171644. It broke some tests; will investigate and
1507         reland later.
1508
1509         * WebView/WebScriptDebugDelegate.mm:
1510
1511 2014-07-25  Filip Pizlo  <fpizlo@apple.com>
1512
1513         Merge r170090, r170092, r170129, r170141, r170161, r170215, r170275, r170375, r170376, r170382, r170383, r170399, r170436, r170489, r170490, r170556 from ftlopt.
1514
1515     2014-07-25  Mark Lam  <mark.lam@apple.com>
1516     
1517             [ftlopt] Renamed DebuggerActivation to DebuggerScope.
1518             <https://webkit.org/b/134273>
1519     
1520             Reviewed by Michael Saboff.
1521     
1522             * WebView/WebScriptDebugDelegate.mm:
1523             - Removed unneeded #include.
1524     
1525 2014-07-25  Jeremy Jones  <jeremyj@apple.com>
1526
1527         Parent fullscreen from window instead of view
1528         https://bugs.webkit.org/show_bug.cgi?id=135310
1529
1530         Reviewed by Jer Noble.
1531
1532         Parenting in the view causes an incorrect animation to fullscreen, and can cause 
1533         fullscreen to only expand to the size of the view instead of the whole window.
1534
1535         * WebView/WebView.mm:
1536         (-[WebView _enterFullscreenForNode:]): Pass window instead of view.
1537
1538 2014-07-24  Pratik Solanki  <psolanki@apple.com>
1539
1540         [iOS] Remove prefs to tweak cache values
1541         https://bugs.webkit.org/show_bug.cgi?id=135274
1542         <rdar://problem/17784826>
1543
1544         Reviewed by Alexey Proskuryakov.
1545
1546         Remove iOS specific code that used to look up user defaults to see if any cache values were
1547         overridden. This was added for testing, is not used any more and is actually harmful now. It
1548         can cause unnecessary memory churn when under memory pressure since we call [WebView _setCacheModel]
1549         as a means to clear out memory cache.
1550
1551         * WebView/WebPreferenceKeysPrivate.h:
1552         * WebView/WebPreferences.mm:
1553         (+[WebPreferences initialize]):
1554         (-[WebPreferences _setNSURLMemoryCacheSize:]): Deleted.
1555         (-[WebPreferences _NSURLMemoryCacheSize]): Deleted.
1556         (-[WebPreferences _setNSURLDiskCacheSize:]): Deleted.
1557         (-[WebPreferences _NSURLDiskCacheSize]): Deleted.
1558         * WebView/WebPreferencesPrivate.h:
1559         * WebView/WebView.mm:
1560         (+[WebView _setCacheModel:]):
1561
1562 2014-07-24  Peyton Randolph  <prandolph@apple.com>
1563
1564         Rename feature flag for long-press gesture on Mac.                                                                   
1565         https://bugs.webkit.org/show_bug.cgi?id=135259                                                                 
1566
1567         Reviewed by Beth Dakin.
1568
1569         * Configurations/FeatureDefines.xcconfig:
1570         Rename LINK_LONG_PRESS to MAC_LONG_PRESS.
1571
1572 2014-07-24  Dan Bernstein  <mitz@apple.com>
1573
1574         WebKit part of <rdar://problem/17766348> [Cocoa] WebCore::ProtectionSpace doesn’t preserve all NSURLProtectionSpace properties, such as the distinguishedNames array
1575         https://bugs.webkit.org/show_bug.cgi?id=135229
1576
1577         Reviewed by Alexey Proskuryakov.
1578
1579         * Misc/WebDownload.mm:
1580         (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]): Chanegd to use the
1581         ProtectionSpace constructor that takes an NSURLProtectionSpace.
1582
1583         * Plugins/WebBaseNetscapePluginView.mm:
1584         (WebKit::getAuthenticationInfo): Ditto.
1585
1586         * WebCoreSupport/WebFrameLoaderClient.mm:
1587         (WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace): Changed to use
1588         ProtectionSpace::nsSpace.
1589
1590 2014-07-23  Bem Jones-Bey  <bjonesbe@adobe.com>
1591
1592         Remove CSS_EXCLUSIONS compile flag and leftover code
1593         https://bugs.webkit.org/show_bug.cgi?id=135175
1594
1595         Reviewed by Zoltan Horvath.
1596
1597         At this point, the CSS_EXCLUSIONS flag guards nothing but some useless
1598         stubs. This removes the flag and the useless code.
1599
1600         * Configurations/FeatureDefines.xcconfig:
1601
1602 2014-07-22  Enrica Casucci  <enrica@apple.com>
1603
1604         REGRESSION (WebKit2): Selection inside accelerated overflow:scroll doesn't track scrolling.
1605         https://bugs.webkit.org/show_bug.cgi?id=135180
1606         <rdar://problem/16721055>
1607
1608         Reviewed by Simon Fraser.
1609
1610         * WebCoreSupport/WebEditorClient.h:
1611
1612 2014-07-22  Jeremy Jones  <jeremyj@apple.com>
1613
1614         Don't create new UIWindow for video fullscreen.
1615         https://bugs.webkit.org/show_bug.cgi?id=135038
1616
1617         Reviewed by Darin Adler.
1618
1619         Provide UIView to WebVideoFullscreenController
1620
1621         * WebView/WebView.mm:
1622         (-[WebView _enterFullscreenForNode:]): pass UIView instead of nil
1623
1624 2014-07-21  Pratik Solanki  <psolanki@apple.com>
1625
1626         Unreviewed iOS build fix after r171321.
1627
1628         * WebView/WebView.mm:
1629         (-[WebView _preferencesChanged:]):
1630
1631 2014-07-21  Beth Dakin  <bdakin@apple.com>
1632
1633         WK1 should always setAcceleratedCompositingForFixedPositionEnabled(true) on 
1634         Yosemite
1635         https://bugs.webkit.org/show_bug.cgi?id=135135
1636
1637         Reviewed by Darin Adler.
1638
1639         Get rid of the ChromeClient function, and enable the Setting instead.
1640         * WebCoreSupport/WebChromeClient.h:
1641         * WebCoreSupport/WebChromeClient.mm:
1642         (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition): Deleted.
1643         * WebView/WebView.mm:
1644         (-[WebView _preferencesChanged:]):
1645
1646 2014-07-21  Beth Dakin  <bdakin@apple.com>
1647
1648         Build fix.
1649
1650         * WebCoreSupport/WebChromeClient.mm:
1651         (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition):
1652
1653 2014-07-21  Beth Dakin  <bdakin@apple.com>
1654
1655         Put position:fixed elements into layers when a WK1 view is layer-backed
1656         https://bugs.webkit.org/show_bug.cgi?id=135075
1657
1658         Reviewed by Darin Adler.
1659
1660         Returns true when the WebHTMLView has a layer.
1661
1662         * WebCoreSupport/WebChromeClient.h:
1663         * WebCoreSupport/WebChromeClient.mm:
1664         (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition):
1665
1666 2014-07-18  Andy Estes  <aestes@apple.com>
1667
1668         [iOS] Tapping "Allow Website" on a restricted page does not bring up the keypad
1669         https://bugs.webkit.org/show_bug.cgi?id=135072
1670         <rdar://problem/17528188>
1671
1672         Reviewed by David Kilzer.
1673
1674         * WebCoreSupport/WebFrameLoaderClient.h: Override contentFilterDidBlockLoad().
1675         * WebCoreSupport/WebFrameLoaderClient.mm:
1676         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Reset contentFilterForBlockedLoad to nullptr.
1677         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Check if this is navigation represents an
1678         unblock request and ignore if so.
1679         * WebView/WebFrame.mm:
1680         (-[WebFrame _contentFilterDidHandleNavigationAction:]): Called ContentFilter::handleUnblockRequestAndDispatchIfSuccessful().
1681         If the unblock is successful, reload the main frame.
1682         * WebView/WebFrameInternal.h:
1683
1684 2014-07-17  David Kilzer  <ddkilzer@apple.com>
1685
1686         SECTORDER_FLAGS should be defined in target's xcconfig file, not Base.xcconfig
1687         <http://webkit.org/b/135006>
1688
1689         Reviewed by Darin Adler.
1690
1691         * Configurations/Base.xcconfig: Move SECTORDER_FLAGS to
1692         WebKitLegacy.xcconfig.
1693         * Configurations/DebugRelease.xcconfig: Remove empty
1694         SECTORDER_FLAGS definition.
1695         * Configurations/WebKit.xcconfig: Removed.  Unused.
1696         * Configurations/WebKitLegacy.xcconfig: Use $(CONFIGURATION) so
1697         SECTORDER_FLAGS is only set on Production builds.
1698
1699 2014-07-17  Timothy Hatcher  <timothy@apple.com>
1700
1701         Make console.profile record to the Timeline.
1702
1703         https://bugs.webkit.org/show_bug.cgi?id=134643
1704
1705         Reviewed by Joseph Pecoraro.
1706
1707         * WebInspector/WebInspector.mm:
1708         (-[WebInspector isProfilingJavaScript]):
1709         (-[WebInspector toggleProfilingJavaScript:]):
1710         (-[WebInspector startProfilingJavaScript:]):
1711         (-[WebInspector stopProfilingJavaScript:]):
1712         (-[WebInspector isJavaScriptProfilingEnabled]):
1713         (-[WebInspector setJavaScriptProfilingEnabled:]):
1714
1715 2014-07-16  David Kilzer  <ddkilzer@apple.com>
1716
1717         [iOS] Update order file paths for WebKit and WebKit2
1718         <http://webkit.org/b/134993>
1719         <rdar://problem/17557776>
1720
1721         Reviewed by Darin Adler.
1722
1723         * Configurations/Base.xcconfig: Rename WebKit.order to
1724         WebKitLegacy.order.
1725
1726 2014-07-16  Brady Eidson  <beidson@apple.com>
1727
1728         Add WebSecurityOrigin "webSecurityOriginFromDatabaseIdentifier" SPI and change _websiteDataURLForContainerWithURL: SPI
1729         <rdar://problem/17454712> and https://bugs.webkit.org/show_bug.cgi?id=134984
1730
1731         Reviewed by Dan Bernstein.
1732
1733         * WebCoreSupport/WebSecurityOrigin.mm:
1734         (+[WebSecurityOrigin webSecurityOriginFromDatabaseIdentifier:]): Added.
1735         (-[WebSecurityOrigin initWithURL:]): Update using RefPtr API to avoid a ref().
1736
1737 2014-07-15  Myles C. Maxfield  <mmaxfield@apple.com>
1738
1739         [OSX] [WK1] Crash when exiting fullscreen
1740         https://bugs.webkit.org/show_bug.cgi?id=134943
1741
1742         Reviewed by Dean Jackson.
1743
1744         AppKit doesn't remove a view from the Key View Loop when removing it from its superview.
1745
1746         This codepath is already "tested" in fullscreen/full-screen-cancel.html, but because of our
1747         testing infrastructure, the broken codepath doesn't actually get hit in DRT. Therefore,
1748         there is no test.
1749
1750         * WebView/WebFullScreenController.mm:
1751         (-[WebFullScreenController enterFullScreen:]):
1752
1753         * WebCoreSupport/WebSecurityOriginPrivate.h:
1754
1755 2014-07-14  Bear Travis  <betravis@adobe.com>
1756
1757         [Feature Queries] Enable Feature Queries on Mac
1758         https://bugs.webkit.org/show_bug.cgi?id=134404
1759
1760         Reviewed by Antti Koivisto.
1761
1762         Enable Feature Queries on Mac and resume running the
1763         feature tests.
1764
1765         * Configurations/FeatureDefines.xcconfig: Turn on
1766         ENABLE_CSS3_CONDITIONAL_RULES.
1767
1768 2014-07-11  Zalan Bujtas  <zalan@apple.com>
1769
1770         Subpixel layout: return integral results for offset*, client*, scroll* by default.
1771         https://bugs.webkit.org/show_bug.cgi?id=134651
1772
1773         Reviewed by Simon Fraser.
1774
1775         Revert to returning integral values for Element.offset* client* scroll* by default.
1776         Fractional values break number of sites(tight design) and JS frameworks(fail to handle fractional values).
1777
1778         Since snapped dimension depends on both the original point and the width/height of the box,
1779         we need to call RenderBoxModelObject::pixelSnapped*() helpers, instead of round().
1780
1781         Covered by existing tests
1782
1783         * WebView/WebPreferences.mm:
1784         (+[WebPreferences initialize]):
1785
1786 2014-07-10  Joseph Pecoraro  <pecoraro@apple.com>
1787
1788         [Mac] NSWindow warning: adding an unknown subview opening detached Inspector
1789         https://bugs.webkit.org/show_bug.cgi?id=134813
1790
1791         Reviewed by Timothy Hatcher.
1792
1793         * WebCoreSupport/WebInspectorClient.mm:
1794         (-[WebInspectorWindowController window]):
1795         Use a selector that will avoid the warning message.
1796
1797 2014-07-09  Ryosuke Niwa  <rniwa@webkit.org>
1798
1799         REGRESSION(r167770): Cannot login in Evernote Safari extension
1800         https://bugs.webkit.org/show_bug.cgi?id=134776
1801
1802         Reviewed by Enrica Casucci.
1803
1804         Unfortunately, NSWindowDidBecomeKeyNotification does not notify us when a popover becomes key
1805         so we need to keep using the SPI (_windowChangedKeyState) I removed in r167770.
1806
1807         * WebView/WebView.mm:
1808         (-[WebView _windowChangedKeyState]):
1809
1810 2014-07-09  Enrica Casucci  <enrica@apple.com>
1811
1812         Implement Editor::fontAttributesForSelectionStart() or iOS.
1813         https://bugs.webkit.org/show_bug.cgi?id=134771
1814         <rdar://problem/16167838>
1815
1816         Reviewed by Ryosuke Niwa.
1817
1818         * WebView/WebViewPrivate.h:
1819
1820 2014-07-08  Tim Horton  <timothy_horton@apple.com>
1821
1822         [WK2] Expose a few drawing/compositing settings on WKPreferences(Private)
1823         https://bugs.webkit.org/show_bug.cgi?id=134645
1824
1825         Reviewed by Dan Bernstein.
1826
1827         * WebView/WebPreferences.mm:
1828         (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]):
1829         Remove an extra unnecessary space.
1830
1831 2014-07-03  Daniel Bates  <dabates@apple.com>
1832
1833         Add WTF::move()
1834         https://bugs.webkit.org/show_bug.cgi?id=134500
1835
1836         Rubber-stamped by Anders Carlsson.
1837
1838         Substitute WTF::move() for std::move().
1839
1840         * History/WebHistoryItem.mm:
1841         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1842         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1843         (WebKit::NetscapePluginInstanceProxy::setCurrentReply):
1844         * Plugins/WebNetscapePluginView.mm:
1845         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
1846         * WebCoreSupport/WebFrameLoaderClient.mm:
1847         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1848         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1849         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1850         (WebFrameLoaderClient::dispatchWillSubmitForm):
1851         * WebCoreSupport/WebInspectorClient.mm:
1852         (WebInspectorClient::openInspectorFrontend):
1853         (WebInspectorFrontendClient::WebInspectorFrontendClient):
1854         * WebView/WebArchive.mm:
1855         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
1856
1857 2014-07-01  Mark Rowe  <mrowe@apple.com>
1858
1859         <https://webkit.org/b/134522> Remove duplication in code that prepares the user agent string on Mac and iOS
1860
1861         Reviewed by Simon Fraser.
1862
1863         * WebView/WebView.mm:
1864         (webKitBundleVersionString): Return the entire CFBundleVersion now that WebCore handles formatting it.
1865         (+[WebView _standardUserAgentWithApplicationName:]):
1866
1867 2014-07-02  Dan Bernstein  <mitz@apple.com>
1868
1869         Remove some code only needed for versions of Safari that are no longer supported
1870         https://bugs.webkit.org/show_bug.cgi?id=134537
1871
1872         Reviewed by Anders Carlsson.
1873
1874         * History/WebHistoryItem.mm:
1875         * Misc/WebKitVersionChecks.h:
1876         * WebCoreSupport/WebSecurityOrigin.mm:
1877         (-[WebSecurityOrigin domain]): Deleted.
1878         * WebInspector/WebInspector.mm:
1879         (-[WebInspector showTimeline:]): Deleted.
1880         (+[WebInspector webInspector]): Deleted.
1881         (-[WebInspector setWebFrame:]): Deleted.
1882         (-[WebInspector window]): Deleted.
1883         (-[WebInspector showWindow:]): Deleted.
1884         * WebView/WebFrame.mm:
1885         (-[WebFrame reload]):
1886         * WebView/WebPDFView.mm:
1887         (-[WebPDFView menuForEvent:]):
1888         (-[WebPDFView _anyPDFTagsFoundInMenu:]): Deleted.
1889         * WebView/WebView.mm:
1890         (-[WebView _initWithFrame:frameName:groupName:]):
1891         (-[WebView _preferencesChanged:]):
1892         (-[WebView initWithFrame:frameName:groupName:]):
1893         (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]): Deleted.
1894         (+[WebView _setAlwaysUseATSU:]): Deleted.
1895         (-[WebView _needsUnrestrictedGetMatchedCSSRules]): Deleted.
1896         * WebView/WebViewPrivate.h:
1897
1898 2014-07-01  Dan Bernstein  <mitz@apple.com>
1899
1900         Remove WebChromeClient code that was only needed for Safari versions earlier than 3.1
1901         https://bugs.webkit.org/show_bug.cgi?id=134531
1902
1903         Reviewed by Daniel Bates.
1904
1905         * WebCoreSupport/WebChromeClient.mm:
1906         (WebChromeClient::exceededDatabaseQuota):
1907
1908 2014-06-29  Yoav Weiss  <yoav@yoav.ws>
1909
1910         Add support for HTMLImageElement's sizes attribute
1911         https://bugs.webkit.org/show_bug.cgi?id=133620
1912
1913         Reviewed by Dean Jackson.
1914
1915         Added an ENABLE_PICTURE_SIZES compile flag.
1916
1917         * Configurations/FeatureDefines.xcconfig:
1918
1919 2014-06-27  Sam Weinig  <sam@webkit.org>
1920
1921         InfoClick (from Nisus Software) dies on viewing found items
1922         <rdar://problem/17395601>
1923         https://bugs.webkit.org/show_bug.cgi?id=134410
1924
1925         Reviewed by Andy Estes.
1926
1927         InfoClick was calling -[WebPreferences setPrivateBrowsingEnabled:] before
1928         setting up a WebView (or anything else that would have set up WebKitSystemInterface),
1929         which now requires a set up WebKitSystemInterface. We can fix this by initializing
1930         it from +[WebPreferences initialize].
1931
1932         * WebView/WebPreferences.mm:
1933         (+[WebPreferences initialize]):
1934         Add call to InitWebCoreSystemInterface().
1935
1936         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
1937         Remove now unnecessary call to InitWebCoreSystemInterface().
1938
1939 2014-06-27  Peyton Randolph  <prandolph@apple.com>
1940
1941         Add feature flag for link long-press gesture.
1942         https://bugs.webkit.org/show_bug.cgi?id=134262
1943
1944         Reviewed by Enrica Casucci.
1945
1946         * Configurations/FeatureDefines.xcconfig:
1947         Add ENABLE_LINK_LONG_PRESS.
1948
1949 2014-06-26  Brady Eidson  <beidson@apple.com>
1950
1951         Remove use of PlatformStrategies for Gamepad API.
1952         https://bugs.webkit.org/show_bug.cgi?id=134348
1953
1954         Reviewed by Dean Jackson.
1955
1956         Remove all the GamepadStrategy gunk:
1957         * WebCoreSupport/WebHIDGamepadController.mm: Removed.
1958         * WebCoreSupport/WebPlatformStrategies.h:
1959         * WebCoreSupport/WebPlatformStrategies.mm:
1960         (WebPlatformStrategies::createGamepadStrategy): Deleted.
1961         (WebPlatformStrategies::startMonitoringGamepads): Deleted.
1962         (WebPlatformStrategies::stopMonitoringGamepads): Deleted.
1963         (WebPlatformStrategies::platformGamepads): Deleted.
1964
1965         Instead, install the HIDGamepadProvider as the shared GamepadProvider:
1966         * WebView/WebView.mm:
1967         (WebKitInitializeGamepadProviderIfNecessary):
1968         (-[WebView _commonInitializationWithFrameName:groupName:]):
1969
1970 2014-06-26  Joseph Pecoraro  <pecoraro@apple.com>
1971
1972         [iOS] Remove User Default for iOS TextField Debugging
1973         https://bugs.webkit.org/show_bug.cgi?id=134356
1974
1975         Reviewed by Timothy Hatcher.
1976
1977         * WebView/WebPreferenceKeysPrivate.h:
1978         * WebView/WebView.mm:
1979         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1980
1981 2014-06-25  Brady Eidson  <beidson@apple.com>
1982
1983         Add HID-based gamepad implementation for Mac
1984         https://bugs.webkit.org/show_bug.cgi?id=134324
1985
1986         Reviewed by Dean Jackson.
1987
1988         Add a class that acts as an intermediary between the GamepadStrategyClient
1989         and the HIDGamepadListener:
1990         * WebCoreSupport/WebHIDGamepadController.h:
1991         * WebCoreSupport/WebHIDGamepadController.mm:
1992         (WebHIDGamepadController::shared):
1993         (WebHIDGamepadController::WebHIDGamepadController):
1994         (WebHIDGamepadController::gamepadConnected):
1995         (WebHIDGamepadController::gamepadDisconnected):
1996         (WebHIDGamepadController::registerGamepadStrategyClient):
1997         (WebHIDGamepadController::unregisterGamepadStrategyClient):
1998
1999         Implement the strategies by using the HIDGamepadListener:
2000         * WebCoreSupport/WebPlatformStrategies.mm:
2001         (WebPlatformStrategies::startMonitoringGamepads):
2002         (WebPlatformStrategies::stopMonitoringGamepads):
2003         (WebPlatformStrategies::platformGamepads):
2004
2005 2014-06-25  Brady Eidson  <beidson@apple.com>
2006
2007         Add new platform gamepad abstractions
2008         https://bugs.webkit.org/show_bug.cgi?id=134325
2009
2010         Reviewed by Dean Jackson.
2011
2012         * WebCoreSupport/WebPlatformStrategies.h:
2013         * WebCoreSupport/WebPlatformStrategies.mm:
2014         (WebPlatformStrategies::createGamepadStrategy):
2015         (WebPlatformStrategies::startMonitoringGamepads):
2016         (WebPlatformStrategies::stopMonitoringGamepads):
2017         (WebPlatformStrategies::platformGamepads):
2018
2019 2014-06-25  Gavin Barraclough  <baraclough@apple.com>
2020
2021         Should _updateVisibilityState on view hide/unhide.
2022         https://bugs.webkit.org/show_bug.cgi?id=134314
2023         rdar://17171803
2024
2025         Reviewed by Sam Weinig.
2026
2027         * WebView/WebView.mm:
2028         (-[WebView viewDidHide]):
2029         (-[WebView viewDidUnhide]):
2030
2031 2014-06-25  Chris Fleizach  <cfleizach@apple.com>
2032
2033         Add an undo group for each dictated utterance in WebKit
2034         https://bugs.webkit.org/show_bug.cgi?id=134086
2035
2036         Reviewed by Enrica Casucci.
2037
2038         * WebView/WebHTMLView.mm:
2039         (-[WebHTMLView validAttributesForMarkedText]):
2040         (-[WebHTMLView insertText:]):
2041
2042 2014-06-25  Dana Burkart  <dburkart@apple.com>
2043
2044         Add support for 5-tuple versioning.
2045
2046         Reviewed by David Farler.
2047
2048         * Configurations/Version.xcconfig:
2049
2050 2014-06-25  Laszlo Gombos  <l.gombos@samsung.com>
2051
2052         Remove build guard for progress element
2053         https://bugs.webkit.org/show_bug.cgi?id=134292
2054
2055         Reviewed by Benjamin Poulain.
2056
2057         * Configurations/FeatureDefines.xcconfig:
2058
2059 2014-06-24  Benjamin Poulain  <bpoulain@apple.com>
2060
2061         WK1 WebFrameNetworkingContext cleanup: do not instanciate an empty NSString to create an empty WTF::String
2062         https://bugs.webkit.org/show_bug.cgi?id=134222
2063
2064         Reviewed by Andreas Kling.
2065
2066         * WebCoreSupport/WebFrameNetworkingContext.mm:
2067         (WebFrameNetworkingContext::sourceApplicationIdentifier):
2068
2069 2014-06-24  Joseph Pecoraro  <pecoraro@apple.com>
2070
2071         [iOS]: WK2 Inspector Node Highlighting
2072         https://bugs.webkit.org/show_bug.cgi?id=134257
2073
2074         Reviewed by Timothy Hatcher.
2075
2076         * WebInspector/WebNodeHighlightView.mm:
2077         (-[WebNodeHighlightView layoutSublayers:]):
2078
2079 2014-06-24  Brady Eidson  <beidson@apple.com>
2080
2081         Enable GAMEPAD in the Mac build, but disabled at runtime.
2082         https://bugs.webkit.org/show_bug.cgi?id=134255
2083
2084         Reviewed by Dean Jackson.
2085
2086         * Configurations/FeatureDefines.xcconfig:
2087
2088         * WebView/WebPreferenceKeysPrivate.h:
2089         * WebView/WebPreferences.mm:
2090         (-[WebPreferences gamepadsEnabled]):
2091         (-[WebPreferences setGamepadsEnabled:]):
2092         * WebView/WebPreferencesPrivate.h:
2093
2094         * WebView/WebView.mm:
2095         (-[WebView _preferencesChanged:]):
2096
2097 2014-06-24  Dan Bernstein  <mitz@apple.com>
2098
2099         Fixed the iOS build after r170358.
2100
2101         * WebView/WebView.mm:
2102         (kit):
2103
2104 2014-06-23  Anders Carlsson  <andersca@apple.com>
2105
2106         Remove unused history visit code from WebHistoryItem
2107         https://bugs.webkit.org/show_bug.cgi?id=134201
2108
2109         Reviewed by Sam Weinig.
2110
2111         * History/HistoryPropertyList.h:
2112         * History/HistoryPropertyList.mm:
2113         (HistoryPropertyListWriter::HistoryPropertyListWriter):
2114         (HistoryPropertyListWriter::writeHistoryItem):
2115         * History/WebHistory.mm:
2116         (-[WebHistoryPrivate visitedURL:withTitle:]):
2117         (-[WebHistoryPrivate addItem:discardDuplicate:]):
2118         (-[WebHistory _visitedURL:withTitle:method:wasFailure:]):
2119         (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]): Deleted.
2120         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]): Deleted.
2121         * History/WebHistoryInternal.h:
2122         * History/WebHistoryItem.mm:
2123         (-[WebHistoryItem copyWithZone:]):
2124         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2125         (-[WebHistoryItem _visitedWithTitle:]):
2126         (-[WebHistoryItem setVisitCount:]): Deleted.
2127         (-[WebHistoryItem _mergeAutoCompleteHints:]): Deleted.
2128         (-[WebHistoryItem _visitedWithTitle:increaseVisitCount:]): Deleted.
2129         (-[WebHistoryItem _recordInitialVisit]): Deleted.
2130         (timeToDay): Deleted.
2131         (-[WebHistoryItem _padDailyCountsForNewVisit:]): Deleted.
2132         (-[WebHistoryItem _collapseDailyVisitsToWeekly]): Deleted.
2133         (-[WebHistoryItem _recordVisitAtTime:increaseVisitCount:]): Deleted.
2134         (-[WebHistoryItem _setLastVisitedTimeInterval:]): Deleted.
2135         * History/WebHistoryItemInternal.h:
2136         * History/WebHistoryItemPrivate.h:
2137         * WebCoreSupport/WebFrameLoaderClient.mm:
2138         (WebFrameLoaderClient::updateGlobalHistory):
2139
2140 2014-06-24  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2141
2142         REGRESSION(r170235): Remove incorrect ifdef guard
2143         https://bugs.webkit.org/show_bug.cgi?id=134246
2144
2145         Reviewed by Csaba Osztrogonác.
2146
2147         * WebView/WebView.mm:
2148         (-[WebView _visibilityState]):
2149
2150 2014-06-23  Anders Carlsson  <andersca@apple.com>
2151
2152         Fix build.
2153
2154         * WebCoreSupport/WebSystemInterface.mm:
2155         (InitWebCoreSystemInterface):
2156
2157 2014-06-21  Dan Bernstein  <mitz@apple.com>
2158
2159         Tried to fix the iOS build after r170235.
2160
2161         * WebView/WebView.mm:
2162
2163 2014-06-21  Brady Eidson  <beidson@apple.com>
2164
2165         Gamepad API - Deprecate the existing implementation
2166         https://bugs.webkit.org/show_bug.cgi?id=134108
2167
2168         Reviewed by Timothy Hatcher.
2169
2170         -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it
2171         -Move some implementation files into a "deprecated" subdirectory.
2172
2173         * Configurations/FeatureDefines.xcconfig:
2174
2175 2014-06-21  Commit Queue  <commit-queue@webkit.org>
2176
2177         Unreviewed, rolling out r170244.
2178         https://bugs.webkit.org/show_bug.cgi?id=134157
2179
2180         GTK/EFL bindings generator works differently, making this
2181         patch not work there.  Will fix entire patch after a rollout.
2182         (Requested by bradee-oh on #webkit).
2183
2184         Reverted changeset:
2185
2186         "Gamepad API - Deprecate the existing implementation"
2187         https://bugs.webkit.org/show_bug.cgi?id=134108
2188         http://trac.webkit.org/changeset/170244
2189
2190 2014-06-21  Brady Eidson  <beidson@apple.com>
2191
2192         Gamepad API - Deprecate the existing implementation
2193         https://bugs.webkit.org/show_bug.cgi?id=134108
2194
2195         Reviewed by Timothy Hatcher.
2196
2197         -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it
2198         -Add the "Deprecated" suffix to some implementation files
2199
2200         * Configurations/FeatureDefines.xcconfig:
2201
2202 2014-06-21  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2203
2204         Removing PAGE_VISIBILITY_API compile guard.
2205         https://bugs.webkit.org/show_bug.cgi?id=133844
2206
2207         Reviewed by Gavin Barraclough.
2208
2209         * Configurations/FeatureDefines.xcconfig:
2210         * WebView/WebView.mm:
2211         (-[WebView _preferencesChanged:]):
2212         (-[WebView _visibilityState]):
2213
2214 2014-06-18  Anders Carlsson  <andersca@apple.com>
2215
2216         Make FrameLoadType a strongly typed enum
2217         https://bugs.webkit.org/show_bug.cgi?id=134047
2218
2219         Reviewed by Andreas Kling.
2220
2221         * WebView/WebFrame.mm:
2222         (toWebFrameLoadType):
2223         (-[WebFrame _loadType]):
2224         * WebView/WebView.mm:
2225         (-[WebView _loadBackForwardListFromOtherView:]):
2226         (-[WebView goToBackForwardItem:]):
2227
2228 2014-06-18  Daniel Bates  <dabates@apple.com>
2229
2230         REGRESSION (r167856): Unable to log into HSBC app
2231         https://bugs.webkit.org/show_bug.cgi?id=133991
2232         <rdar://problem/17044839>
2233
2234         Reviewed by David Kilzer.
2235
2236         Only enable the setting allowNavigationToInvalidURL for iOS app linked against WebKit/UIKit before iOS 8.
2237
2238         * Misc/WebKitVersionChecks.h: Added macro constant WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION.
2239         * WebView/WebView.mm:
2240         (-[WebView _preferencesChanged:]): Enable or disable the setting allowNavigationToInvalidURL as appropriate.
2241
2242 2014-06-18  Anders Carlsson  <andersca@apple.com>
2243
2244         Adopt modern C++11 loops and fix WebArchive creation functions
2245         https://bugs.webkit.org/show_bug.cgi?id=134032
2246
2247         Reviewed by Andreas Kling.
2248
2249         * WebView/WebArchive.mm:
2250         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2251         * WebView/WebDataSource.mm:
2252         (-[WebDataSource subresources]):
2253
2254 2014-06-15  Anders Carlsson  <andersca@apple.com>
2255
2256         Add an autorelease() member function to RetainPtr
2257         https://bugs.webkit.org/show_bug.cgi?id=133929
2258
2259         Reviewed by Dan Bernstein.
2260
2261         * WebView/WebDataSource.mm:
2262         (-[WebDataSource data]):
2263         * WebView/WebHTMLView.mm:
2264         (-[WebHTMLView _selectionDraggingImage]):
2265         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
2266         * WebView/WebResource.mm:
2267         (-[WebResource data]):
2268
2269 2014-06-11  Jeremy Jones  <jeremyj@apple.com>
2270
2271         WebFrameNetworkContext should not have a sourceApplicationIdentifier in WK1.
2272         https://bugs.webkit.org/show_bug.cgi?id=133772
2273
2274         Reviewed by Jer Noble.
2275
2276         Return empty string from sourceApplicationIdentifier for WK1.
2277
2278         * WebCoreSupport/WebFrameNetworkingContext.mm:
2279         (WebFrameNetworkingContext::sourceApplicationIdentifier):
2280
2281 2014-06-10  Timothy Horton  <timothy_horton@apple.com>
2282
2283         Factor repeated CFRunLoopObserver code out
2284         https://bugs.webkit.org/show_bug.cgi?id=133690
2285
2286         Reviewed by Simon Fraser.
2287
2288         * WebView/WebViewData.h:
2289
2290 2014-06-05  Pratik Solanki  <psolanki@apple.com>
2291
2292         Remove unsused method _setAcceleratedImageDecoding
2293         https://bugs.webkit.org/show_bug.cgi?id=133554
2294
2295         Reviewed by Jon Honeycutt.
2296
2297         * WebView/WebView.mm:
2298         (+[WebView _setAcceleratedImageDecoding:]): Deleted.
2299         * WebView/WebViewPrivate.h:
2300
2301 2014-06-05  Benjamin Poulain  <bpoulain@apple.com>
2302
2303         [iOS][WK2] Add device orientation
2304         https://bugs.webkit.org/show_bug.cgi?id=133530
2305
2306         Reviewed by Tim Horton.
2307
2308         * WebView/WebFrame.mm:
2309         (-[WebFrame deviceOrientationChanged]):
2310         (-[WebFrame sendOrientationChangeEvent:]):
2311         * WebView/WebFramePrivate.h:
2312
2313 2014-05-31  Anders Carlsson  <andersca@apple.com>
2314
2315         Change DeferrableOneShotTimer to use std::function instead of being a class template
2316         https://bugs.webkit.org/show_bug.cgi?id=133423
2317
2318         Reviewed by Antti Koivisto.
2319
2320         * WebView/WebView.mm:
2321         (+[WebView _setCacheModel:]):
2322
2323 2014-05-27  Jon Lee  <jonlee@apple.com>
2324
2325         Update ENABLE(MEDIA_SOURCE) on Mac
2326         https://bugs.webkit.org/show_bug.cgi?id=133141
2327
2328         Reviewed by Darin Adler.
2329
2330         * Configurations/FeatureDefines.xcconfig:
2331
2332 2014-05-27  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
2333
2334         Remove BLOB guards
2335         https://bugs.webkit.org/show_bug.cgi?id=132863
2336
2337         Reviewed by Csaba Osztrogonác.
2338
2339         * Configurations/FeatureDefines.xcconfig:
2340         * WebView/WebView.mm:
2341         (+[WebView _canHandleRequest:forMainFrame:]):
2342
2343 2014-05-24  Chris Fleizach  <cfleizach@apple.com>
2344
2345         AX: fix coordinate mapping for iOS accessibility
2346         https://bugs.webkit.org/show_bug.cgi?id=133188
2347
2348         Reviewed by Sam Weinig.
2349
2350         * WebCoreSupport/WebChromeClient.h:
2351         * WebCoreSupport/WebChromeClient.mm:
2352         (WebChromeClient::accessibilityScreenToRootView):
2353         (WebChromeClient::rootViewToAccessibilityScreen):
2354
2355 2014-05-23  Jeremy Jones  <jeremyj@apple.com>
2356
2357         Hide fullscreen immediately when switching tabs.
2358         https://bugs.webkit.org/show_bug.cgi?id=133239
2359
2360         Reviewed by Eric Carlson.
2361
2362         Renamed a function to better describe it's new functionality.
2363
2364         * WebView/WebView.mm:
2365         (-[WebView viewDidMoveToWindow]):
2366         now calls: requestHideAndExitFullscreen
2367
2368 2014-05-20  Dean Jackson  <dino@apple.com>
2369
2370         [Mac] Allow popup menus to override default appearance
2371         https://bugs.webkit.org/show_bug.cgi?id=133129
2372
2373         Reviewed by Tim Horton.
2374
2375         Replace the call to wkPopupMenuWithSize with wkPopupMenu, now
2376         with extra parameters to indicate the control size and whether
2377         or not to draw the arrows at the end.
2378
2379         * WebCoreSupport/PopupMenuMac.mm:
2380         (PopupMenuMac::show):
2381
2382 2014-05-20  Eric Carlson  <eric.carlson@apple.com>
2383
2384         [Mac] do not deactivate an audio session that has running I/O
2385         https://bugs.webkit.org/show_bug.cgi?id=133127
2386
2387         Reviewed by Jer Noble.
2388
2389         * WebView/WebView.mm:
2390         (-[WebView _commonInitializationWithFrameName:groupName:]): Settings::setShouldManageAudioSession
2391             renamed to setShouldManageAudioSessionCategory, deal with it.
2392
2393 2014-05-19  Brady Eidson  <beidson@apple.com>
2394
2395         Use different AppKit API for image control menus.
2396         <rdar://problem/16807828> and https://bugs.webkit.org/show_bug.cgi?id=133087
2397
2398         Reviewed by Tim Horton.
2399
2400         For image control menus, use popUpMenuPositioningItem: instead of popUpContextMenu:
2401         
2402         * WebCoreSupport/WebContextMenuClient.h:
2403         * WebCoreSupport/WebContextMenuClient.mm:
2404         (WebContextMenuClient::contextMenuForEvent):
2405         (WebContextMenuClient::showContextMenu):
2406
2407 2014-05-19  Andy Estes  <aestes@apple.com>
2408
2409         Set WebKitSuppressesIncrementalRenderingKey to NO by default on both Mac and iOS
2410         https://bugs.webkit.org/show_bug.cgi?id=133073
2411
2412         Reviewed by Simon Fraser.
2413
2414         * WebView/WebPreferences.mm:
2415         (+[WebPreferences initialize]):
2416
2417 2014-05-18  Anders Carlsson  <andersca@apple.com>
2418
2419         Bring back two NSString category methods on iOS
2420         https://bugs.webkit.org/show_bug.cgi?id=133055
2421         <rdar://problem/16951983>
2422
2423         Reviewed by Adele Peterson.
2424
2425         * Misc/WebNSURLExtras.h:
2426         * Misc/WebNSURLExtras.mm:
2427         (-[NSString _webkit_unescapedQueryValue]):
2428         (-[NSString _webkit_queryKeysAndValues]):
2429
2430 2014-05-18  Rik Cabanier  <cabanier@adobe.com>
2431
2432         support for navigator.hardwareConcurrency
2433         https://bugs.webkit.org/show_bug.cgi?id=132588
2434
2435         Reviewed by Filip Pizlo.
2436
2437         * Configurations/FeatureDefines.xcconfig:
2438
2439 2014-05-17  Zalan Bujtas  <zalan@apple.com>
2440
2441         Subpixel rendering: Add subpixelCSSOMElementMetricsEnabled to WK1 WebPreferences.
2442         https://bugs.webkit.org/show_bug.cgi?id=133029
2443
2444         Reviewed by Simon Fraser.
2445
2446         To match the WK2 preferences API.
2447
2448         * WebView/WebPreferenceKeysPrivate.h:
2449         * WebView/WebPreferences.mm:
2450         (+[WebPreferences initialize]):
2451         (-[WebPreferences subpixelCSSOMElementMetricsEnabled]):
2452         (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]):
2453         * WebView/WebPreferencesPrivate.h:
2454         * WebView/WebView.mm:
2455         (-[WebView _preferencesChanged:]):
2456
2457 2014-05-16  Simon Fraser  <simon.fraser@apple.com>
2458
2459         Remove "region-based columns" prefs
2460         https://bugs.webkit.org/show_bug.cgi?id=133006
2461         <rdar://problem/16945824>
2462
2463         Reviewed by Dave Hyatt.
2464
2465         Remove "region-based columns" prefs and related code, since this is only
2466         way to render columns now.
2467
2468         * WebView/WebPreferenceKeysPrivate.h:
2469         * WebView/WebPreferences.mm:
2470         (+[WebPreferences initialize]):
2471         (-[WebPreferences setRegionBasedColumnsEnabled:]): Deleted.
2472         (-[WebPreferences regionBasedColumnsEnabled]): Deleted.
2473         * WebView/WebPreferencesPrivate.h:
2474         * WebView/WebView.mm:
2475         (-[WebView _preferencesChanged:]):
2476
2477 2014-05-15  Brady Eidson  <beidson@apple.com>
2478
2479         Crash in [WebSharingServicePickerController clear]
2480         <rdar://problem/16879073> and https://bugs.webkit.org/show_bug.cgi?id=132968
2481
2482         Reviewed by Tim Horton.
2483
2484         * Misc/WebSharingServicePickerController.mm:
2485         (-[WebSharingServicePickerController clear]): Add a RetainPtr protector so this object
2486           isn’t dealloc’ed partway through.
2487
2488 2014-05-15  Simon Fraser  <simon.fraser@apple.com>
2489
2490         Initialize the WebKitRegionBasedColumnsEnabled pref on iOS WK1
2491         https://bugs.webkit.org/show_bug.cgi?id=132969
2492
2493         Reviewed by Dan Bernstein.
2494         
2495         Move this outside the #if !PLATFORM(IOS) block.
2496
2497         * WebView/WebPreferences.mm:
2498         (+[WebPreferences initialize]):
2499
2500 2014-05-15  Simon Fraser  <simon.fraser@apple.com>
2501
2502         Clean up -[WebView _preferencesChanged]
2503         https://bugs.webkit.org/show_bug.cgi?id=132967
2504
2505         Reviewed by Sam Weinig.
2506         
2507         -[WebView _preferencesChanged] was a horrible mess of #ifdefs. Clean this up by
2508         moving all the #if PLATFORM() code together, and moving all the feature-define related
2509         settings to the end.
2510         
2511         No behavior changes, checked by diffing the resulting Settings with and without
2512         the patch, on OS X and iOS.
2513
2514         * WebView/WebView.mm:
2515         (-[WebView _preferencesChanged:]):
2516
2517 2014-05-15  Alex Christensen  <achristensen@webkit.org>
2518
2519         Add pointer lock to features without enabling it.
2520         https://bugs.webkit.org/show_bug.cgi?id=132961
2521
2522         Reviewed by Sam Weinig.
2523
2524         * Configurations/FeatureDefines.xcconfig:
2525         Added ENABLE_POINTER_LOCK to list of features.
2526         * WebView/WebPDFView.mm:
2527         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2528         Added extra parameters needed when pointer lock is enabled.
2529
2530 2014-05-14  Brady Eidson  <beidson@apple.com>
2531
2532         Implement NSSharingServiceDelegate method "transitionImageForShareItem"
2533         <rdar://problem/16878020> and https://bugs.webkit.org/show_bug.cgi?id=132911
2534
2535         Reviewed by Tim Horton.
2536
2537         * Misc/WebSharingServicePickerController.mm:
2538         (-[WebSharingServicePickerController sharingService:transitionImageForShareItem:contentRect:]):
2539
2540         * WebCoreSupport/WebContextMenuClient.h:
2541         * WebCoreSupport/WebContextMenuClient.mm:
2542         (WebContextMenuClient::renderedImageForControlledImage): Paint the entire content rect for the controlled image
2543           into an ImageBuffer, then return the resulting NSImage. This only paints the image itself and not any
2544           overlapping content by setting the selection and appropriate painting mode.
2545
2546 2014-05-14  Brady Eidson  <beidson@apple.com>
2547
2548         sourceFrameOnScreenForShareItem: can be off by a pixel
2549         <rdar://problem/16878020> and https://bugs.webkit.org/show_bug.cgi?id=132911
2550
2551         Reviewed by Simon Fraser.
2552
2553         In a land of LayoutUnits and sub-pixel rendering, converting between IntRects and
2554         FloatRects can be error prone. So we now try to minimize such conversions.
2555
2556         * Misc/WebSharingServicePickerController.mm:
2557         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
2558
2559         * WebCoreSupport/WebContextMenuClient.h:
2560         * WebCoreSupport/WebContextMenuClient.mm:
2561         (WebContextMenuClient::clientFloatRectForNode): Split this into a separate utility method
2562           as it will be shared with other code very soon. Instead of using absoluteBoundingBoxRect()
2563           which does lossy float->int conversions, try to keep things in terms of FloatRects as
2564           much as possible.
2565         (WebContextMenuClient::screenRectForHitTestNode): Call clientFloatRectForNode to get the
2566           FloatRect, then perform the lossy rounding conversion to an IntRect only once.
2567
2568 2014-05-14  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
2569
2570         Remove CSS_STICKY_POSITION guards
2571         https://bugs.webkit.org/show_bug.cgi?id=132676
2572
2573         Reviewed by Simon Fraser.
2574
2575         * Configurations/FeatureDefines.xcconfig:
2576
2577 2014-05-14  Antti Koivisto  <antti@apple.com>
2578
2579         GIF animations don't restart after scrolling with iOS WebKit1
2580         https://bugs.webkit.org/show_bug.cgi?id=132900
2581         <rdar://problem/16490858>
2582
2583         Reviewed by Andreas Kling.
2584
2585         * WebView/WebView.mm:
2586         (-[WebView _didFinishScrollingOrZooming]):
2587         
2588             Check if the animations need to be restarted after scrolling finishes.
2589
2590 2014-05-09  Joseph Pecoraro  <pecoraro@apple.com>
2591
2592         Web Inspector: Allow Remote Inspector to entitlement check UIProcess through WebProcess
2593         https://bugs.webkit.org/show_bug.cgi?id=132409
2594
2595         Reviewed by Timothy Hatcher.
2596
2597         Simplify the legacy iOS UIWebViewController case by passing on
2598         the host process pid and audit_token.
2599
2600         * WebView/WebView.mm:
2601         (-[WebView _setHostApplicationProcessIdentifier:auditToken:]):
2602         (-[WebView setHostApplicationBundleId:name:]): Deleted.
2603         (-[WebView hostApplicationBundleId]): Deleted.
2604         (-[WebView hostApplicationName]): Deleted.
2605         * WebView/WebViewData.h:
2606         * WebView/WebViewData.mm:
2607         (-[WebViewPrivate dealloc]):
2608         * WebView/WebViewPrivate.h:
2609
2610 2014-05-09  Benjamin Poulain  <benjamin@webkit.org>
2611
2612         [iOS] Switch geolocation to an explicit authorization query model
2613         https://bugs.webkit.org/show_bug.cgi?id=132717
2614
2615         Reviewed by Sam Weinig.
2616
2617         Since there is no warmup code, WebGeolocationPolicyListener no longer need to know about the provider,
2618         which is awesome :)
2619
2620         * WebCoreSupport/WebGeolocationClient.mm:
2621         (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:]):
2622         (-[WebGeolocationPolicyListener deny]):
2623         (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:]):
2624         (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:]):
2625         (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:provider:]): Deleted.
2626         (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:provider:]): Deleted.
2627         (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:provider:]): Deleted.
2628         * WebView/WebViewPrivate.h:
2629
2630 2014-05-08  Jer Noble  <jer.noble@apple.com>
2631
2632         [Mac, iOS] Add source application accounting to AVURLAsset.
2633         https://bugs.webkit.org/show_bug.cgi?id=132637
2634
2635         Reviewed by Eric Carlson.
2636
2637         Add accessor for sourceApplicationIdentifier.
2638
2639         * WebCoreSupport/WebFrameNetworkingContext.h:
2640         * WebCoreSupport/WebFrameNetworkingContext.mm:
2641         (WebFrameNetworkingContext::sourceApplicationIdentifier):
2642
2643 2014-05-08  Anders Carlsson  <andersca@apple.com>
2644
2645         Use a different install name for WebKitLegacy.framework for staged framework builds
2646         https://bugs.webkit.org/show_bug.cgi?id=132711
2647         <rdar://problem/16850620>
2648
2649         Reviewed by Dan Bernstein.
2650
2651         * Configurations/WebKitLegacy.xcconfig:
2652
2653 2014-05-08  Brady Eidson  <beidson@apple.com>
2654
2655         Wrap a new class definition with __has_include()
2656         <rdar://problem/16852395> and https://bugs.webkit.org/show_bug.cgi?id=132694
2657
2658         Reviewed by Tim Horton.
2659
2660         * Misc/WebSharingServicePickerController.mm:
2661
2662 2014-05-07  Pratik Solanki  <psolanki@apple.com>
2663
2664         Use system defaults for hardware jpeg decoding
2665         https://bugs.webkit.org/show_bug.cgi?id=132661
2666         <rdar://problem/11348201>
2667
2668         Reviewed by Tim Horton.
2669
2670         Remove code that explicitly disabled hardware image decoding. Let the system decide what to do.
2671
2672         * WebView/WebView.mm:
2673         (+[WebView _setAcceleratedImageDecoding:]):
2674         (+[WebView _acceleratedImageDecoding]): Deleted.
2675         * WebView/WebViewPrivate.h:
2676
2677 2014-05-07  Brent Fulgham  <bfulgham@apple.com>
2678
2679         [Mac, iOS] REGRESSION: WK2 YouTube support
2680         https://bugs.webkit.org/show_bug.cgi?id=132568
2681         <rdar://problem/11464344>
2682
2683         Reviewed by Darin Adler.
2684
2685         * Misc/WebNSURLExtras.h:
2686         * Misc/WebNSURLExtras.mm: Remove code that has been converted to C++
2687         and added to YouTubePluginReplacement.cpp.
2688         (-[NSURL _webkit_youTubeURL]):
2689         (-[NSString _webkit_queryKeysAndValues]):
2690         (createYouTubeURL): Deleted.
2691         (-[NSString _webkit_unescapedQueryValue]): Deleted.
2692
2693 2014-05-07  Jeremy Jones  <jeremyj@apple.com>
2694
2695         HTMLMediaElement should exitFullscreen when view is removed from the window.
2696         https://bugs.webkit.org/show_bug.cgi?id=132506
2697
2698         Reviewed by Tim Horton.
2699
2700         * WebView/WebView.mm:
2701         (-[WebView viewDidMoveToWindow]):
2702         Request WebVideoFullscreenController to exitFullscreen when view is removed from the window.
2703
2704 2014-05-07  Brady Eidson  <beidson@apple.com>
2705
2706         Image menu is offset by the amount the view is scrolled
2707         <rdar://problem/16818966> and https://bugs.webkit.org/show_bug.cgi?id=132663
2708
2709         Reviewed by Tim Horton.
2710
2711         * WebCoreSupport/WebContextMenuClient.mm:
2712         (WebContextMenuClient::showContextMenu): Use FrameView::contentsToWindow instead of contentsToRoot, 
2713           and skip the [NSView convertPoint:toView:] step.
2714
2715 2014-05-07  Simon Fraser  <simon.fraser@apple.com>
2716
2717         WebKit1 is flashy when compositing layers come and go
2718         https://bugs.webkit.org/show_bug.cgi?id=132655
2719
2720         Reviewed by Sam Weinig.
2721         
2722         In r166117 I removed code to flush compositing layers in FrameView::paintContents(),
2723         which caused problems when painting iframes. However, this removed a flush
2724         that WebKit1 relied on to flush compositing layers when painting, which caused
2725         flashing when compositing layers come and go, and broke WebView snapshotting
2726         in some cases.
2727         
2728         Fix by adding back compositing layer flushing, but this time in WebKit1's
2729         -viewWillDraw code path. This allows removal of some flushing in DumpRenderTree.
2730
2731         * WebView/WebHTMLView.mm:
2732         (-[WebHTMLView viewWillDraw]):
2733         * WebView/WebView.mm:
2734         (-[WebView _flushCompositingChanges]):
2735         * WebView/WebViewInternal.h:
2736         * WebView/WebViewPrivate.h:
2737
2738 2014-05-07  Manuel Rego Casasnovas  <rego@igalia.com>
2739
2740         [CSS Grid Layout] Remove runtime feature
2741         https://bugs.webkit.org/show_bug.cgi?id=132382
2742
2743         Reviewed by Benjamin Poulain.
2744
2745         Remove cssGridLayoutEnabled setting usage.
2746
2747         * WebKit.order:
2748         * WebView/WebPreferenceKeysPrivate.h:
2749         * WebView/WebPreferences.mm:
2750         (+[WebPreferences initialize]):
2751         (-[WebPreferences cssGridLayoutEnabled]): Deleted.
2752         (-[WebPreferences setCSSGridLayoutEnabled:]): Deleted.
2753         * WebView/WebPreferencesPrivate.h:
2754         * WebView/WebView.mm:
2755         (-[WebView _preferencesChanged:]):
2756
2757 2014-05-06  Dean Jackson  <dino@apple.com>
2758
2759         [Mac] Allow focus rings to redraw themselves if necessary
2760         https://bugs.webkit.org/show_bug.cgi?id=132593
2761
2762         Reviewed by Simon Fraser.
2763
2764         * WebCoreSupport/WebSystemInterface.mm:
2765         (InitWebCoreSystemInterface): Add DrawFocusRingAtTime and DrawCellFocusRingWithFrameAtTime.
2766
2767 2014-05-06  Brady Eidson  <beidson@apple.com>
2768
2769         Don't select an image that is about to have its menu shown.
2770         <rdar://problem/16807845> and https://bugs.webkit.org/show_bug.cgi?id=132579
2771
2772         Reviewed by Tim Horton.
2773
2774         * Misc/WebSharingServicePickerController.mm:
2775         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
2776           Call the new replaceNodeFromPasteboard API instead of readSelectionFromPasteboard.
2777
2778 2014-05-06  Anders Carlsson  <andersca@apple.com>
2779
2780         Move the WebKitLegacy header check to the right file
2781         https://bugs.webkit.org/show_bug.cgi?id=132620
2782         <rdar://problem/16815716>
2783
2784         Reviewed by Dan Bernstein.
2785
2786         * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make:
2787         * WebKitLegacy/WebKit.h:
2788
2789 2014-05-06  Anders Carlsson  <andersca@apple.com>
2790
2791         Put WebKitPluginHost.app in WebKitLegacy.framework
2792         https://bugs.webkit.org/show_bug.cgi?id=132592
2793         <rdar://problem/15920046>
2794
2795         Reviewed by Dan Bernstein.
2796
2797         * Plugins/Hosted/NetscapePluginHostManager.mm:
2798         (WebKit::NetscapePluginHostManager::spawnPluginHost):
2799
2800 2014-05-06  Darin Adler  <darin@apple.com>
2801
2802         [iOS] Fix two more AdoptCF I missed in my last patch.
2803
2804         * WebView/WebHTMLView.mm:
2805         (imageFromRect): Use adoptCF instead of AdoptCF.
2806
2807 2014-05-05  Andreas Kling  <akling@apple.com>
2808
2809         Unreviewed, rolling out r168334.
2810
2811         Broke builds.
2812
2813         Reverted changeset:
2814
2815         "Put WebKitPluginHost.app in WebKitLegacy.framework"
2816         https://bugs.webkit.org/show_bug.cgi?id=132592
2817         http://trac.webkit.org/changeset/168334
2818
2819 2014-05-05  Anders Carlsson  <andersca@apple.com>
2820
2821         Put WebKitPluginHost.app in WebKitLegacy.framework
2822         https://bugs.webkit.org/show_bug.cgi?id=132592
2823         <rdar://problem/15920046>
2824
2825         Reviewed by Dan Bernstein.
2826
2827         * Plugins/Hosted/NetscapePluginHostManager.mm:
2828         (WebKit::NetscapePluginHostManager::spawnPluginHost):
2829
2830 2014-05-02  Brady Eidson  <beidson@apple.com>
2831
2832         Implement new delegate method -sharingService:sourceFrameOnScreenForShareItem:.
2833         <rdar://problem/16797425> and https://bugs.webkit.org/show_bug.cgi?id=132484
2834
2835         Reviewed by Tim Horton.
2836
2837         * Misc/WebSharingServicePickerController.mm:
2838         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
2839
2840         * WebCoreSupport/WebContextMenuClient.h:
2841         * WebCoreSupport/WebContextMenuClient.mm:
2842         (WebContextMenuClient::screenRectForHitTestNode):
2843
2844 2014-05-02  Brady Eidson  <beidson@apple.com>
2845
2846         Crash inside [WebSharingServicePickerController clear]
2847         <rdar://problem/16791944> and https://bugs.webkit.org/show_bug.cgi?id=132477
2848
2849         Reviewed by Tim Horton.
2850
2851         * Misc/WebSharingServicePickerController.h:
2852         * Misc/WebSharingServicePickerController.mm:
2853         (-[WebSharingServicePickerController clear]): clear can be called twice, so null check _menuClient.
2854
2855         * WebCoreSupport/WebContextMenuClient.h:
2856         * WebCoreSupport/WebContextMenuClient.mm:
2857         (WebContextMenuClient::~WebContextMenuClient): For a sanity check, call clear on the picker here.
2858
2859 2014-05-01  Tim Horton  <timothy_horton@apple.com>
2860
2861         More 32-bit build fixes.
2862
2863         * Misc/WebSharingServicePickerController.mm:
2864         (-[WebSharingServicePickerController sharingService:didShareItems:]):
2865
2866 2014-05-01  Tim Horton  <timothy_horton@apple.com>
2867
2868         Temporarily "fix" the 32-bit build.
2869
2870         * Misc/WebSharingServicePickerController.mm:
2871         This will fail miserably at runtime, but we shouldn't ever get here in a 32-bit process.
2872
2873 2014-05-01  Brady Eidson  <beidson@apple.com>
2874
2875         Update service picker API usage.
2876         <rdar://problem/16772674> and https://bugs.webkit.org/show_bug.cgi?id=132452
2877
2878         Reviewed by Tim Horton.
2879
2880         * Misc/WebSharingServicePickerController.h:
2881         * Misc/WebSharingServicePickerController.mm:
2882         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
2883           Factor out a common "didShare" handler that optionally validates whether the data represents an image.
2884         (-[WebSharingServicePickerController sharingService:didShareItems:]): Update API usage, including marshalling
2885           on off-main thread call back to the main thread.
2886
2887         * WebCoreSupport/WebContextMenuClient.mm:
2888         (WebContextMenuClient::contextMenuForEvent): Update API usage.
2889
2890 2014-05-01  Anders Carlsson  <andersca@apple.com>
2891
2892         Support OS-version-specific install paths for WebKit.framework
2893         https://bugs.webkit.org/show_bug.cgi?id=132448
2894         <rdar://problem/16784932>
2895
2896         Reviewed by Dan Bernstein.
2897
2898         * WebKitLegacy/WebKit.m:
2899         Add version specific install names.
2900
2901 2014-04-30  Alexey Proskuryakov  <ap@apple.com>
2902
2903         Roll out fix for https://bugs.webkit.org/show_bug.cgi?id=131637:
2904         Clean up unnecessary methods in the BackForwardClient interface
2905
2906         It broke a regression test and an API test.
2907
2908         * History/WebBackForwardList.mm:
2909         (-[WebBackForwardList initWithBackForwardList:]):
2910         (-[WebBackForwardList init]):
2911         (-[WebBackForwardList dealloc]):
2912         (-[WebBackForwardList finalize]):
2913         (-[WebBackForwardList setPageCacheSize:]):
2914         (-[WebBackForwardList pageCacheSize]):
2915         * History/WebBackForwardListInternal.h:
2916         * WebCoreSupport/WebFrameLoaderClient.mm:
2917         (WebFrameLoaderClient::canCachePage):
2918         * WebView/WebFrameView.mm:
2919         (-[WebFrameView keyDown:keyDown:]):
2920         * WebView/WebView.mm:
2921         (-[WebView _loadBackForwardListFromOtherView:]):
2922         (-[WebView initWithCoder:]):
2923         (-[WebView encodeWithCoder:]):
2924         (-[WebView backForwardList]):
2925         (-[WebView setMaintainsBackForwardList:]):
2926
2927 2014-04-30  Simon Fraser  <simon.fraser@apple.com>
2928
2929         Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO
2930         https://bugs.webkit.org/show_bug.cgi?id=132396
2931
2932         Reviewed by Eric Carlson.
2933
2934         Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code.
2935
2936         * Configurations/FeatureDefines.xcconfig:
2937         * Plugins/WebPluginContainerPrivate.h:
2938         * Plugins/WebPluginController.h:
2939         * Plugins/WebPluginController.mm:
2940         (-[WebPluginController dealloc]):
2941         (-[WebPluginController plugInsAreRunning]):
2942         (-[WebPluginController stopAllPlugins]):
2943         (-[WebPluginController stopPluginsForPageCache]):
2944         (-[WebPluginController restorePluginsFromCache]):
2945         (-[WebPluginController addPlugin:]):
2946         (-[WebPluginController destroyPlugin:]):
2947         (-[WebPluginController destroyAllPlugins]):
2948         (-[NSView isMediaPlugInProxyView]): Deleted.
2949         (-[NSView setIsMediaPlugInProxyView:]): Deleted.
2950         (-[WebPluginController mediaPlugInProxyViewCreated:]): Deleted.
2951         (+[WebPluginController pluginViewHidden:]): Deleted.
2952         (mediaProxyClient): Deleted.
2953         (-[WebPluginController _webPluginContainerSetMediaPlayerProxy:forElement:]): Deleted.
2954         (-[WebPluginController _webPluginContainerPostMediaPlayerNotification:forElement:]): Deleted.
2955         * WebCoreSupport/WebFrameLoaderClient.h:
2956         * WebCoreSupport/WebFrameLoaderClient.mm:
2957         (pluginView):
2958         * WebView/WebView.mm:
2959         (-[WebView _preferencesChanged:]):
2960         (-[WebView _videoProxyPluginForMIMEType:]): Deleted.
2961         * WebView/WebViewInternal.h:
2962
2963 2014-04-30  Anders Carlsson  <andersca@apple.com>
2964
2965         Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework
2966         https://bugs.webkit.org/show_bug.cgi?id=132399
2967         <rdar://problem/15920046>
2968
2969         Reviewed by Dan Bernstein.
2970
2971         * Carbon/CarbonUtils.h:
2972         * Carbon/HIViewAdapter.h:
2973         * Carbon/HIWebView.h:
2974         Import WebKitLegacy headers instead of WebKit headers.
2975
2976         * Configurations/WebKit.xcconfig:
2977         Move the definitions needed for building WebKitLegacy.framework to WebKitLegacy.xcconfig and
2978         add the relevant definitions needed for re-exporting WebKitLegacy.framework.
2979
2980         * Configurations/WebKitLegacy.xcconfig:
2981         Add definitions needed for building the "old" WebKit API as WebKitLegacy.framework.
2982
2983         * DOM/WebDOMOperations.h:
2984         * DOM/WebDOMOperations.mm:
2985         * DOM/WebDOMOperationsInternal.h:
2986         * DOM/WebDOMOperationsPrivate.h:
2987         * DefaultDelegates/WebDefaultContextMenuDelegate.h:
2988         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2989         * DefaultDelegates/WebDefaultEditingDelegate.m:
2990         * History/WebBackForwardListInternal.h:
2991         * History/WebBackForwardListPrivate.h:
2992         * History/WebHistoryItemPrivate.h:
2993         * History/WebHistoryPrivate.h:
2994         * History/WebURLsWithTitles.m:
2995         Import WebKitLegacy headers instead of WebKit headers.
2996
2997         * MigrateHeaders.make:
2998         Update header paths now that all WebKitLegacy headers are private.
2999         Remove migration of WebKit2 headers, that is done by MigrateHeadersFromWebKitLegacy.make now.
3000         
3001         * Misc/WebCoreStatistics.h:
3002         * Misc/WebDownload.h:
3003         * Misc/WebDownload.mm:
3004         * Misc/WebDownloadInternal.h:
3005         * Misc/WebElementDictionary.mm:
3006         * Misc/WebIconDatabasePrivate.h:
3007         * Misc/WebKit.h:
3008         * Misc/WebKitErrors.m:
3009         * Misc/WebKitErrorsPrivate.h:
3010         * Misc/WebKitNSStringExtras.mm:
3011         * Misc/WebLocalizableStrings.mm:
3012         * Misc/WebNSDataExtras.m:
3013         * Misc/WebNSDictionaryExtras.m:
3014         * Misc/WebNSEventExtras.m:
3015         * Misc/WebNSFileManagerExtras.mm:
3016         * Misc/WebNSImageExtras.m:
3017         * Misc/WebNSPasteboardExtras.mm:
3018         * Misc/WebNSViewExtras.h:
3019         * Misc/WebNSViewExtras.m:
3020         * Panels/WebAuthenticationPanel.m:
3021         * Panels/WebPanelAuthenticationHandler.m:
3022         * Plugins/Hosted/HostedNetscapePluginStream.h:
3023         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3024         * Plugins/Hosted/WebKitPluginAgent.defs:
3025         * Plugins/Hosted/WebKitPluginAgentReply.defs:
3026         * Plugins/Hosted/WebKitPluginClient.defs:
3027         * Plugins/Hosted/WebKitPluginHost.defs:
3028         * Plugins/Hosted/WebKitPluginHostTypes.defs:
3029         * Plugins/WebBaseNetscapePluginView.mm:
3030         * Plugins/WebBasePluginPackage.h:
3031         * Plugins/WebBasePluginPackage.mm:
3032         * Plugins/WebNetscapeContainerCheckPrivate.h:
3033         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
3034         * Plugins/WebNetscapePluginStream.h:
3035         * Plugins/WebNetscapePluginView.h:
3036         * Plugins/WebNetscapePluginView.mm:
3037         * Plugins/WebPlugin.h:
3038         * Plugins/WebPluginController.h:
3039         * Plugins/WebPluginDatabase.h:
3040         * Plugins/WebPluginPackage.h:
3041         * Plugins/WebPluginPackage.mm:
3042         * Plugins/WebPluginViewFactory.h:
3043         * Plugins/WebPluginViewFactoryPrivate.h:
3044         * Plugins/npapi.mm:
3045         * Storage/WebDatabaseManagerPrivate.h:
3046         * WebCoreSupport/WebContextMenuClient.mm:
3047         * WebCoreSupport/WebFrameLoaderClient.mm:
3048         * WebCoreSupport/WebFrameNetworkingContext.mm:
3049         * WebCoreSupport/WebGeolocationClient.mm:
3050         * WebCoreSupport/WebInspectorClient.mm:
3051         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
3052         * WebCoreSupport/WebKeyGenerator.mm:
3053         * WebInspector/WebInspectorPrivate.h:
3054         * WebInspector/WebNodeHighlight.h:
3055         * WebInspector/WebNodeHighlightView.h:
3056         Import WebKitLegacy headers instead of WebKit headers.
3057         
3058         * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make: Added.
3059         New makefile that handles copying WebKitLegacy headers to the WebKit framework, rewriting WebKitLegacy
3060         imports to WebKit imports. (On iOS the WebKit headers just forward to the relevant WebKitLegacy headers).
3061         On OS X, this also handles copying WebKit2 headers to the WebKit framework, rewriting WebKit2 imports to WebKit imports
3062         and getting rid of C SPI imports.
3063         
3064         * WebKitLegacy/MigrateHeadersToLegacy.make: Removed.
3065         This is no longer needed.
3066         
3067         * WebKitLegacy/WebKit.h: Added.
3068         New umbrella header that imports the modern API if available, as well as the legacy API (using WebKit/WebKitLegacy.h).
3069
3070         * WebKitLegacy/WebKit.m:
3071         This is an empty file so we'll have something to link.
3072
3073         * WebKitLegacy/WebKitPrivate.h:
3074         New SPI header that imports the private headers of the modern API.
3075
3076         * WebView/WebDataSource.h:
3077         * WebView/WebDataSource.mm:
3078         * WebView/WebDataSourcePrivate.h:
3079         * WebView/WebDelegateImplementationCaching.h:
3080         * WebView/WebDocument.h:
3081         * WebView/WebDocumentInternal.h:
3082         * WebView/WebDocumentPrivate.h:
3083         * WebView/WebEditingDelegate.h:
3084         * WebView/WebEditingDelegatePrivate.h:
3085         * WebView/WebFrameLoadDelegate.h:
3086         * WebView/WebFrameLoadDelegatePrivate.h:
3087         * WebView/WebFramePrivate.h:
3088         * WebView/WebFrameView.h:
3089         * WebView/WebFrameViewInternal.h:
3090         * WebView/WebFrameViewPrivate.h:
3091         * WebView/WebHTMLRepresentation.h:
3092         * WebView/WebHTMLRepresentation.mm:
3093         * WebView/WebHTMLRepresentationPrivate.h:
3094         * WebView/WebHTMLView.h:
3095         * WebView/WebHTMLView.mm:
3096         * WebView/WebHTMLViewPrivate.h:
3097         * WebView/WebPDFView.h:
3098         * WebView/WebPolicyDelegatePrivate.h:
3099         * WebView/WebPreferencesPrivate.h:
3100         * WebView/WebResourcePrivate.h:
3101         * WebView/WebUIDelegate.h:
3102         * WebView/WebUIDelegatePrivate.h:
3103         * WebView/WebView.h:
3104         * WebView/WebView.mm:
3105         * WebView/WebViewPrivate.h:
3106         Import WebKitLegacy headers instead of WebKit headers.
3107
3108         * migrate-headers.sh:
3109         Derived sources are put in DerivedSources/WebKitLegacy now.
3110
3111 2014-04-30  David Hyatt  <hyatt@apple.com>
3112
3113         [New Multicolumn] Enable new multi-column mode
3114         https://bugs.webkit.org/show_bug.cgi?id=131825
3115
3116         Reviewed by Simon Fraser.
3117
3118         * WebView/WebPreferences.mm:
3119         (+[WebPreferences initialize]):
3120
3121 2014-04-30  Brian J. Burg  <burg@cs.washington.edu>
3122
3123         Clean up unnecessary methods in the BackForwardClient interface
3124         https://bugs.webkit.org/show_bug.cgi?id=131637
3125
3126         Reviewed by Andreas Kling.
3127
3128         BackForwardClient instances now have ownership lifetime semantics, so
3129         WebBackForwardList now explicitly deletes its inner BackForwardList.
3130
3131         Convert uses of WebCore::BackForwardList through backForward().client() to
3132         accept references instead of pointers.
3133
3134         Use BackForwardController methods rather than directly operating with the
3135         BackForwardClient where possible.
3136
3137         Remove page cache-related methods that are not used anywhere and that call
3138         BackForwardClient::page(), which is removed by this change.
3139
3140         * History/WebBackForwardList.mm:
3141         (-[WebBackForwardList initWithBackForwardList:]):
3142         (-[WebBackForwardList init]):
3143         (-[WebBackForwardList dealloc]):
3144         (-[WebBackForwardList finalize]):
3145         (-[WebBackForwardList setPageCacheSize]): Deleted.
3146         (-[WebBackForwardList pageCacheSize]): Deleted.
3147         (-[WebBackForwardList itemAtIndex:]): Deleted.
3148         * History/WebBackForwardListInternal.h:
3149         * WebCoreSupport/WebFrameLoaderClient.mm:
3150         (WebFrameLoaderClient::canCachePage):
3151         * WebView/WebFrameView.mm:
3152         (-[WebFrameView keyDown:keyDown:]):
3153         * WebView/WebView.mm:
3154         (-[WebView _loadBackForwardListFromOtherView:]):
3155         (-[WebView initWithCoder:]):
3156         (-[WebView encodeWithCoder:]):
3157         (-[WebView backForwardList]):
3158         (-[WebView setMaintainsBackForwardList:]):
3159
3160 2014-04-29  Sam Weinig  <sam@webkit.org>
3161
3162         [iOS] -[WebHTMLView selectionImageForcingBlackText:] returns blank image on iOS
3163         https://bugs.webkit.org/show_bug.cgi?id=132359
3164
3165         Reviewed by Darin Adler.
3166
3167         * WebView/WebHTMLView.mm:
3168         (imageFromRect):
3169         (selectionImage):
3170         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
3171         Bring back the old FrameSnapshottingMac code for drawing the selection image as drag code for this
3172         is still unimplemented on iOS.
3173
3174         * WebView/WebView.mm:
3175         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3176         Set the page scale for "simple HTML documents" (this is already done for the all other documents), 
3177         to ensure that the snapshot is the correct size.
3178
3179 2014-04-30  Manuel Rego Casasnovas  <rego@igalia.com>
3180
3181         [CSS Grid Layout] Enable runtime feature by default
3182         https://bugs.webkit.org/show_bug.cgi?id=132189
3183
3184         Reviewed by Benjamin Poulain.
3185
3186         * WebView/WebPreferences.mm:
3187         (+[WebPreferences initialize]): Remove unneeded changes that
3188         enable/disable the runtime feature depending on the compilation flag.
3189         And set it to true by default.
3190
3191 2014-04-29  Filip Pizlo  <fpizlo@apple.com>
3192
3193         Use LLVM as a backend for the fourth-tier DFG JIT (a.k.a. the FTL JIT)
3194         https://bugs.webkit.org/show_bug.cgi?id=112840
3195
3196         Rubber stamped by Geoffrey Garen.
3197
3198         * Configurations/FeatureDefines.xcconfig:
3199
3200 2014-04-29  Brady Eidson  <beidson@apple.com>
3201
3202         Change Image Controls replacement to use selection and paste
3203         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
3204
3205         Reviewed by Tim Horton.
3206
3207         * Misc/WebSharingServicePickerController.mm:
3208         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
3209           replacement data to a special pasteboard, then replace the current selection from
3210           that pasteboard.
3211
3212 2014-04-27  Sam Weinig  <sam@webkit.org>
3213
3214         [iOS WebKit2] Add support for text autosizing
3215         <rdar://problem/16545245>
3216         https://bugs.webkit.org/show_bug.cgi?id=132237
3217
3218         Reviewed by Tim Horton.
3219
3220         * WebView/WebFrame.mm:
3221         (-[WebFrame _setTextAutosizingWidth:]):
3222         Forward setting of the text autosizing width to the Page.
3223
3224 2014-04-25  Dean Jackson  <dino@apple.com>
3225
3226         Allow a platform-specific size enumeration to be passed into popup-menu display
3227         https://bugs.webkit.org/show_bug.cgi?id=132195
3228
3229         Reviewed by Brent Fulgham. With some in-person review comments from Sam Weinig.
3230
3231         Platforms like OS X use a set of predefined sizes for built-in controls
3232         used for <select>: normal, small and mini. Expose that information to
3233         the PopupMenuClient via the PopupMenuStyle, allowing it to be passed
3234         into the platform code in WebKitSystemInterface.
3235
3236         * WebCoreSupport/PopupMenuMac.mm:
3237         (PopupMenuMac::show): Convert the WebCore menu size type into the
3238         WebCoreSystemInterface type.
3239
3240 2014-04-24  Commit Queue  <commit-queue@webkit.org>
3241
3242         Unreviewed, rolling out r167700.
3243         https://bugs.webkit.org/show_bug.cgi?id=132142
3244
3245         Incorrectly reverted the change in r167547 for
3246         webkit.org/b/131898 (Requested by rniwa on #webkit).
3247
3248         Reverted changeset:
3249
3250         "Cursor doesn't change back to pointer when leaving the Safari
3251         window"
3252         https://bugs.webkit.org/show_bug.cgi?id=132038
3253         http://trac.webkit.org/changeset/167700
3254
3255 2014-04-24  Brady Eidson  <beidson@apple.com>
3256
3257         Rename "IMAGE_CONTROLS" feature to "SERVICE_CONTROLS"
3258         https://bugs.webkit.org/show_bug.cgi?id=132155
3259
3260         Reviewed by Tim Horton.
3261
3262         * Configurations/FeatureDefines.xcconfig:
3263         * Misc/WebSharingServicePickerController.h:
3264         * Misc/WebSharingServicePickerController.mm:
3265         * WebCoreSupport/WebContextMenuClient.h:
3266         * WebCoreSupport/WebContextMenuClient.mm:
3267         (WebContextMenuClient::contextMenuForEvent):
3268         * WebView/WebPreferences.mm:
3269         (+[WebPreferences initialize]):
3270         * WebView/WebView.mm:
3271         (-[WebView _preferencesChanged:]):
3272
3273 2014-04-24  Ryosuke Niwa  <rniwa@webkit.org>
3274
3275         Text caret disappears in Mail after returning from another application
3276         https://bugs.webkit.org/show_bug.cgi?id=132111
3277
3278         Reviewed by Darin Adler.
3279
3280         The bug was caused by our SPI _windowChangedKeyState not getting called upon deminiaturization.
3281
3282         Fixed the bug by using the standard NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification
3283         notifications as done in WebKit2 since they DO get called upon deminiaturization.
3284
3285         * WebView/WebView.mm:
3286         (-[WebView addWindowObserversForWindow:]):
3287         (-[WebView removeWindowObservers]):
3288         (-[WebView _windowKeyStateChanged:]):
3289         (-[WebView _windowChangedKeyState]): Deleted.
3290
3291 2014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
3292
3293         FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
3294         https://bugs.webkit.org/show_bug.cgi?id=132110
3295
3296         Reviewed by Tim Horton.
3297
3298         Updates callers to use '.' instead of '->'.
3299
3300         No new tests are necessary because there should be no behavior change.
3301
3302         * Misc/WebCoreStatistics.mm:
3303         (+[WebCoreStatistics cachedFontDataCount]):
3304         (+[WebCoreStatistics cachedFontDataInactiveCount]):
3305         (+[WebCoreStatistics purgeInactiveFontData]):
3306         * WebView/WebView.mm:
3307         (+[WebView purgeInactiveFontData]):
3308
3309 2014-04-24  Eric Carlson  <eric.carlson@apple.com>
3310
3311         [iOS] Manage AudioSession category according to media type
3312         https://bugs.webkit.org/show_bug.cgi?id=132096
3313
3314         Reviewed by Jer Noble.
3315
3316         * WebView/WebView.mm:
3317         (-[WebView _commonInitializationWithFrameName:groupName:]): Tell 
3318             WebCore to manage the AudioSession when running in MobileSafari.
3319
3320 2014-04-23  Andreas Kling  <akling@apple.com>
3321
3322         Remove Apple Dictionary workaround in WebFrameLoaderClient.
3323         <https://webkit.org/b/132095>
3324
3325         Kill a hack to work around a WK1 client bug that got fixed years ago.
3326         See <rdar://problem/6471058> for backstory.
3327
3328         Reviewed by Darin Adler.
3329
3330         * WebCoreSupport/WebFrameLoaderClient.mm:
3331         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
3332         (WebFrameLoaderClient::dispatchWillSendRequest):
3333         (applyAppleDictionaryApplicationQuirkNonInlinePart): Deleted.
3334         (applyAppleDictionaryApplicationQuirk): Deleted.
3335
3336 2014-04-23  Anders Carlsson  <andersca@apple.com>
3337
3338         Don't migrate the WKView.h header from WebCore to WebKit
3339         https://bugs.webkit.org/show_bug.cgi?id=132086
3340
3341         Reviewed by Dan Bernstein.
3342
3343         * MigrateHeaders.make:
3344         Remove WKView.h from the list of headers to migrate.
3345
3346         * WebView/WebView.mm:
3347         Import WKView.h.
3348
3349 2014-04-22  Ryosuke Niwa  <rniwa@webkit.org>
3350
3351         Cursor doesn't change back to pointer when leaving the Safari window
3352         https://bugs.webkit.org/show_bug.cgi?id=132038
3353
3354         Reviewed by Alexey Proskuryakov.
3355
3356         Since the cursor type is now updated asynchronously after r147739,
3357         [window windowNumber] != [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0]
3358         evalutes to false depending on how fast cursor is moving.
3359
3360         Instead, check whether the NSWindow of the WebView is the key window or not since
3361         key window appears to control the cursor style in Cocoa as far as I've tested:
3362         https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
3363
3364         * WebCoreSupport/WebChromeClient.mm:
3365         (WebChromeClient::setCursor):
3366
3367 2014-04-22  Commit Queue  <commit-queue@webkit.org>
3368
3369         Unreviewed, rolling out r167674.
3370         https://bugs.webkit.org/show_bug.cgi?id=132025
3371
3372         Going a different way with this (Requested by bradee-oh on
3373         #webkit).
3374
3375         Reverted changeset:
3376
3377         "Change Image Controls replacement to use selection and paste"
3378         https://bugs.webkit.org/show_bug.cgi?id=131992
3379         http://trac.webkit.org/changeset/167674
3380
3381 2014-04-22  Brady Eidson  <beidson@apple.com>
3382
3383         Change Image Controls replacement to use selection and paste
3384         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
3385
3386         Reviewed by Tim Horton.
3387
3388         * Misc/WebSharingServicePickerController.mm:
3389         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
3390           replacement data to a special pasteboard, then replace the current selection from
3391           that pasteboard.
3392
3393 2014-04-21  Eric Carlson  <eric.carlson@apple.com>
3394
3395         [Mac] implement WebKitDataCue
3396         https://bugs.webkit.org/show_bug.cgi?id=131799
3397
3398         Reviewed by Dean Jackson.
3399
3400         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
3401
3402 2014-04-21  Joseph Pecoraro  <pecoraro@apple.com>
3403
3404         Remove unused WebKitSystemInterface functions
3405         https://bugs.webkit.org/show_bug.cgi?id=131938
3406
3407         Reviewed by Alexey Proskuryakov.
3408
3409         * WebCoreSupport/WebSystemInterface.mm:
3410         (InitWebCoreSystemInterface):
3411
3412 2014-04-21  Zan Dobersek  <zdobersek@igalia.com>
3413
3414         Move cross-port Source/WebCore/page/ code to std::unique_ptr
3415         https://bugs.webkit.org/show_bug.cgi?id=130534
3416
3417         Reviewed by Darin Adler.
3418
3419         * WebView/WebHTMLRepresentation.mm:
3420         (searchForLabelsBeforeElement): Pass a RegExp reference to Frame::searchForLabelsAboveCell().
3421
3422 2014-04-19  Darin Adler  <darin@apple.com>
3423
3424         [Mac] WebView adjusts the cursor even when another window is in front
3425         https://bugs.webkit.org/show_bug.cgi?id=131898
3426         rdar://problem/14619911
3427
3428         Reviewed by Dan Bernstein.
3429
3430         * WebCoreSupport/WebChromeClient.mm:
3431         (WebChromeClient::setCursor): Added a check that the window is under the cursor
3432         and do nothing if it's not.
3433
3434 2014-04-18  Commit Queue  <commit-queue@webkit.org>
3435
3436         Unreviewed, rolling out r167527.
3437         https://bugs.webkit.org/show_bug.cgi?id=131883
3438
3439         Broke 32-bit build (Requested by ap on #webkit).
3440
3441         Reverted changeset:
3442
3443         "[Mac] implement WebKitDataCue"
3444         https://bugs.webkit.org/show_bug.cgi?id=131799
3445         http://trac.webkit.org/changeset/167527
3446
3447 2014-04-18  Eric Carlson  <eric.carlson@apple.com>
3448
3449         [Mac] implement WebKitDataCue
3450         https://bugs.webkit.org/show_bug.cgi?id=131799
3451
3452         Reviewed by Dean Jackson.
3453
3454         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
3455
3456 2014-04-17  Daniel Bates  <dabates@apple.com>
3457
3458         [iOS] Hook up screen.{availHeight, availWidth, height, width}
3459         https://bugs.webkit.org/show_bug.cgi?id=131821
3460         <rdar://problem/16413795>
3461
3462         Reviewed by Benjamin Poulain and Tim Horton.
3463
3464         Add declaration for WKGetViewportAvailableScreenSize() to return the available screen size.
3465
3466         Additionally substitute "ScreenSize" for "ViewportScreenSize" to make the code more understandable.
3467
3468         * WebCoreSupport/WebSystemInterface.mm:
3469         (InitWebCoreSystemInterface):
3470
3471 2014-04-17  Darin Adler  <darin@apple.com>
3472
3473         Add separate flag for IndexedDatabase in workers since the current implementation is not threadsafe
3474         https://bugs.webkit.org/show_bug.cgi?id=131785
3475         rdar://problem/16003108
3476
3477         Reviewed by Brady Eidson.
3478         
3479         * Configurations/FeatureDefines.xcconfig: Added INDEXED_DATABASE_IN_WORKERS.
3480
3481 2014-04-16  Tim Horton  <timothy_horton@apple.com>
3482
3483         Images dragged from WebKit1 on 2x displays are too big
3484         https://bugs.webkit.org/show_bug.cgi?id=131775
3485         <rdar://problem/15933525>
3486
3487         Reviewed by Simon Fraser.
3488
3489         * WebCoreSupport/WebDragClient.mm:
3490         (WebDragClient::startDrag):
3491         Scale the drag image's logical size down by the device scale factor
3492         in WebKit1 just like we do in WebKit2.
3493
3494 2014-04-13  Andy Estes  <aestes@apple.com>
3495
3496         [QuickLook] Move file system-related code into WebKit
3497         https://bugs.webkit.org/show_bug.cgi?id=131597
3498
3499         Reviewed by Dan Bernstein.
3500
3501         Moved file system and WebKit1-only code from QuickLookHandle into a new
3502         QuickLookHandleClient subclass.
3503
3504         * WebCoreSupport/WebFrameLoaderClient.h:
3505         * WebCoreSupport/WebFrameLoaderClient.mm:
3506
3507 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
3508
3509         Eliminate DragSession structure
3510         https://bugs.webkit.org/show_bug.cgi?id=131465
3511
3512         Reviewed by Benjamin Poulain.
3513
3514         * WebView/WebView.mm:
3515         (-[WebView draggingEntered:]):
3516         (-[WebView draggingUpdated:]):
3517
3518 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
3519
3520         Rename some dragging functions
3521         https://bugs.webkit.org/show_bug.cgi?id=131460
3522
3523         Reviewed by Tim Horton.
3524
3525         Renamed performDrag to performDragOperation.
3526
3527         * WebView/WebView.mm: (-[WebView performDragOperation:]):
3528
3529 2014-04-08  Jon Lee  <jonlee@apple.com>
3530
3531         Turn MSE on by default
3532         https://bugs.webkit.org/show_bug.cgi?id=131313
3533         <rdar://problem/16525223>
3534
3535         Reviewed by Jer Noble.
3536
3537         * Configurations/FeatureDefines.xcconfig:
3538         * WebView/WebPreferences.mm:
3539         (+[WebPreferences initialize]): Set default to true.
3540
3541 2014-04-08  Alexey Proskuryakov  <ap@apple.com>
3542
3543         Rename Clipboard to DataTransfer
3544         https://bugs.webkit.org/show_bug.cgi?id=131371
3545
3546         Reviewed by Anders Carlsson.
3547
3548         * WebCoreSupport/WebDragClient.h:
3549         * WebCoreSupport/WebDragClient.mm:
3550         (WebDragClient::willPerformDragSourceAction):
3551         (WebDragClient::startDrag):
3552         * WebView/WebPDFView.mm:
3553
3554 2014-04-08  Dan Bernstein  <mitz@apple.com>
3555
3556         WebKit part of [Cocoa] Add WKFormDelegate
3557         https://bugs.webkit.org/show_bug.cgi?id=131343
3558
3559         Reviewed by Anders Carlsson.
3560
3561         * MigrateHeaders.make: Added new WebKit2 headers to WEBKIT2_HEADERS.
3562
3563 2014-04-08  Daniel Bates  <dabates@apple.com>
3564
3565         Fallback to default storage session when there isn't a valid session ID
3566         https://bugs.webkit.org/show_bug.cgi?id=131326
3567         <rdar://problem/16231679>
3568
3569         Reviewed by Alexey Proskuryakov.
3570
3571         Fixes and issue where we may use the wrong storage session after disabling
3572         a private browsing session.
3573
3574         Currently WebKit1 and WebKit2 without NetworkProcess assume that there