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