12014-08-19  Dana Burkart  <dburkart@apple.com>
2
3        Merge r172709. <rdar://problem/17850158>
4
5    2014-08-18  Andy Estes  <aestes@apple.com>
6    
7            REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
8            https://bugs.webkit.org/show_bug.cgi?id=136010
9    
10            Reviewed by Darin Adler.
11    
12            * Misc/WebKitVersionChecks.h: Removed WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION.
13            * WebView/WebPDFView.mm:
14            (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Passed AllowNavigationToInvalidURL::Yes to FrameLoader::loadFrameRequest.
15            * WebView/WebView.mm:
16            (-[WebView _preferencesChanged:]): Reverted the linked-on-or-after check added in r170120 since it's no longer necessary.
17    
182014-08-13  Lucas Forschler  <lforschler@apple.com>
19
20        Merge r172526
21
22    2014-08-13  Timothy Hatcher  <timothy@apple.com>
23
24            Web Inspector: Workaround a NSWindow change to the title bar.
25            https://bugs.webkit.org/show_bug.cgi?id=135880
26
27            Reviewed by Joseph Pecoraro.
28
29            * WebCoreSupport/WebInspectorClient.mm:
30            (WebInspectorFrontendClient::setToolbarHeight): Only call setContentBorderThickness: on 10.9 and earlier.
31            (-[WebInspectorWindowController init]): Only call setDrawsBackground: on 10.9 and earlier.
32            (-[WebInspectorWindowController window]): Set titlebarAppearsTransparent on 10.10.
33            Only call border thickness APIs on 10.9 and earlier.
34
352014-08-12  Lucas Forschler  <lforschler@apple.com>
36
37        Merge r172379
38
39    2014-08-10  Timothy Hatcher  <timothy@apple.com>
40
41            Web Inspector: new glyphs are visible on OS X 10.9 builds
42            https://bugs.webkit.org/show_bug.cgi?id=135743
43
44            Reviewed by Joseph Pecoraro.
45
46            * WebCoreSupport/WebInspectorClient.mm:
47            (-[WebInspectorWindowController window]): Use 10100 instead of 1090 for the version.
48
492014-08-07  Dana Burkart <dburkart@apple.com>
50
51        Merge r172241
52
53    2014-08-07  Timothy Hatcher  <timothy@apple.com>
54
55            Web Inspector: Update glyphs to be more like Xcode 6
56            https://bugs.webkit.org/show_bug.cgi?id=135705
57
58            Reviewed by Joseph Pecoraro.
59
60            * Resources/Dock.pdf: Added.
61            * Resources/DockLegacy.pdf: Copied from Source/WebKit/mac/Resources/Dock.pdf.
62            * WebCoreSupport/WebInspectorClient.mm:
63            (-[WebInspectorWindowController window]): Use new images.
64
652014-08-07  Dana Burkart <dburkart@apple.com>
66
67        Merge r172172
68
69    2014-08-06  Alexey Proskuryakov  <ap@apple.com>
70
71            REGRESSION (WebKit2): iOS Safari default encoding doesn't follow system language
72            https://bugs.webkit.org/show_bug.cgi?id=135667
73            <rdar://problem/17862892>
74
75            Reviewed by Anders Carlsson.
76
77            * WebView/WebPreferences.mm: (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
78            Moved implementation to WebCore, so that it can be shared with WebKit2.
79
80            * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface):
81            We now use WKGetWebDefaultCFStringEncoding in WebCore, so it needs to be initialized.
82
832014-08-05  Lucas Forschler  <lforschler@apple.com>
84
85        Merge r172016
86
87    2014-08-04  Benjamin Poulain  <bpoulain@apple.com>
88
89            Check for null frame when processing geolocation authorization request
90            https://bugs.webkit.org/show_bug.cgi?id=135577
91            <rdar://problem/17896295>
92
93            Reviewed by Geoffrey Garen.
94
95            * WebCoreSupport/WebGeolocationClient.mm:
96            (WebGeolocationClient::requestPermission):
97
982014-08-05  Lucas Forschler  <lforschler@apple.com>
99
100        Merge r171973
101
102    2014-08-02  Jeremy Jones  <jeremyj@apple.com>
103
104            Support both window and view based video fullscreen.
105            https://bugs.webkit.org/show_bug.cgi?id=135525
106
107            Reviewed by Simon Fraser.
108
109            Parenting in the view instead of the window gives the fullscreen implementation more latitude 
110            in how it implements the animation.
111
112            * WebView/WebView.mm:
113            (-[WebView _enterFullscreenForNode:]): Use view instead of window.
114
1152014-07-27  Matthew Hanson  <matthew_hanson@apple.com>
116
117        Merge r171635. <rdar://problem/17782407>
118
119    2014-07-25  Jeremy Jones  <jeremyj@apple.com>
120    
121            Parent fullscreen from window instead of view
122            https://bugs.webkit.org/show_bug.cgi?id=135310
123    
124            Reviewed by Jer Noble.
125    
126            Parenting in the view causes an incorrect animation to fullscreen, and can cause 
127            fullscreen to only expand to the size of the view instead of the whole window.
128    
129            * WebView/WebView.mm:
130            (-[WebView _enterFullscreenForNode:]): Pass window instead of view.
131    
1322014-07-25  Dean Jackson  <dino@apple.com>
133
134        Revert back to the Safari behavior from Mavericks and Mountain Lion
135        on this branch.
136        <rdar://problem/17800530>
137
138        Follow-up comment from Dan Bernstein.
139
140        * WebView/WebPreferences.mm:
141        (+[WebPreferences initialize]): Make sure this only applies to Mavericks and Mountain Lion.
142
1432014-07-25  Dean Jackson  <dino@apple.com>
144
145        Revert back to the Safari behavior from Mavericks and Mountain Lion
146        on this branch.
147        <rdar://problem/17800530>
148
149        Reviewed by Ricky Mondello.
150
151        * WebView/WebPreferences.mm:
152        (+[WebPreferences initialize]): Set WebGL preference default to off.
153
1542014-07-24  Lucas Forschler  <lforschler@apple.com>
155
156        Merge r171575
157
158    2014-07-24  Pratik Solanki  <psolanki@apple.com>
159
160            [iOS] Remove prefs to tweak cache values
161            https://bugs.webkit.org/show_bug.cgi?id=135274
162            <rdar://problem/17784826>
163
164            Reviewed by Alexey Proskuryakov.
165
166            Remove iOS specific code that used to look up user defaults to see if any cache values were
167            overridden. This was added for testing, is not used any more and is actually harmful now. It
168            can cause unnecessary memory churn when under memory pressure since we call [WebView _setCacheModel]
169            as a means to clear out memory cache.
170
171            * WebView/WebPreferenceKeysPrivate.h:
172            * WebView/WebPreferences.mm:
173            (+[WebPreferences initialize]):
174            (-[WebPreferences _setNSURLMemoryCacheSize:]): Deleted.
175            (-[WebPreferences _NSURLMemoryCacheSize]): Deleted.
176            (-[WebPreferences _setNSURLDiskCacheSize:]): Deleted.
177            (-[WebPreferences _NSURLDiskCacheSize]): Deleted.
178            * WebView/WebPreferencesPrivate.h:
179            * WebView/WebView.mm:
180            (+[WebView _setCacheModel:]):
181
1822014-07-24  Lucas Forschler  <lforschler@apple.com>
183
184        Merge r171540
185
186    2014-07-24  Dan Bernstein  <mitz@apple.com>
187
188            WebKit part of <rdar://problem/17766348> [Cocoa] WebCore::ProtectionSpace doesn’t preserve all NSURLProtectionSpace properties, such as the distinguishedNames array
189            https://bugs.webkit.org/show_bug.cgi?id=135229
190
191            Reviewed by Alexey Proskuryakov.
192
193            * Misc/WebDownload.mm:
194            (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]): Chanegd to use the
195            ProtectionSpace constructor that takes an NSURLProtectionSpace.
196
197            * Plugins/WebBaseNetscapePluginView.mm:
198            (WebKit::getAuthenticationInfo): Ditto.
199
200            * WebCoreSupport/WebFrameLoaderClient.mm:
201            (WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace): Changed to use
202            ProtectionSpace::nsSpace.
203
2042014-07-23  Lucas Forschler  <lforschler@apple.com>
205
206        Merge r171370
207
208    2014-07-22  Enrica Casucci  <enrica@apple.com>
209
210            REGRESSION (WebKit2): Selection inside accelerated overflow:scroll doesn't track scrolling.
211            https://bugs.webkit.org/show_bug.cgi?id=135180
212            <rdar://problem/16721055>
213
214            Reviewed by Simon Fraser.
215
216            * WebCoreSupport/WebEditorClient.h:
217
2182014-07-23  Lucas Forschler  <lforschler@apple.com>
219
220        Merge r171345
221
222    2014-07-22  Jeremy Jones  <jeremyj@apple.com>
223
224            Don't create new UIWindow for video fullscreen.
225            https://bugs.webkit.org/show_bug.cgi?id=135038
226
227            Reviewed by Darin Adler.
228
229            Provide UIView to WebVideoFullscreenController
230
231            * WebView/WebView.mm:
232            (-[WebView _enterFullscreenForNode:]): pass UIView instead of nil
233
2342014-07-22 Dana Burkart <dburkart@apple.com>
235    
236        Merge r171338.
237
238    2014-07-21  Pratik Solanki  <psolanki@apple.com>
239
240            Unreviewed iOS build fix after r171321.
241
242            * WebView/WebView.mm:
243            (-[WebView _preferencesChanged:]):
244
2452014-07-22 Dana Burkart <dburkart@apple.com>
246    
247        Merge r171321.
248
249    2014-07-21  Beth Dakin  <bdakin@apple.com>
250
251            WK1 should always setAcceleratedCompositingForFixedPositionEnabled(true) on 
252            Yosemite
253            https://bugs.webkit.org/show_bug.cgi?id=135135
254
255            Reviewed by Darin Adler.
256
257            Get rid of the ChromeClient function, and enable the Setting instead.
258            * WebCoreSupport/WebChromeClient.h:
259            * WebCoreSupport/WebChromeClient.mm:
260            (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition): Deleted.
261            * WebView/WebView.mm:
262            (-[WebView _preferencesChanged:]):
263
2642014-07-22 Dana Burkart <dburkart@apple.com>
265    
266        Merge r171308.
267
268    2014-07-21  Beth Dakin  <bdakin@apple.com>
269
270            Put position:fixed elements into layers when a WK1 view is layer-backed
271            https://bugs.webkit.org/show_bug.cgi?id=135075
272
273            Reviewed by Darin Adler.
274
275            Returns true when the WebHTMLView has a layer.
276
277            * WebCoreSupport/WebChromeClient.h:
278            * WebCoreSupport/WebChromeClient.mm:
279            (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition):
280
2812014-07-22 Dana Burkart <dburkart@apple.com>
282    
283        Merge r171252.
284
285    2014-07-18  Andy Estes  <aestes@apple.com>
286
287            [iOS] Tapping "Allow Website" on a restricted page does not bring up the keypad
288            https://bugs.webkit.org/show_bug.cgi?id=135072
289            <rdar://problem/17528188>
290
291            Reviewed by David Kilzer.
292
293            * WebCoreSupport/WebFrameLoaderClient.h: Override contentFilterDidBlockLoad().
294            * WebCoreSupport/WebFrameLoaderClient.mm:
295            (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Reset contentFilterForBlockedLoad to nullptr.
296            (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Check if this is navigation represents an
297            unblock request and ignore if so.
298            * WebView/WebFrame.mm:
299            (-[WebFrame _contentFilterDidHandleNavigationAction:]): Called ContentFilter::handleUnblockRequestAndDispatchIfSuccessful().
300            If the unblock is successful, reload the main frame.
301            * WebView/WebFrameInternal.h:
302
3032014-07-22 Dana Burkart <dburkart@apple.com>
304    
305        Merge r171195.
306
307    2014-07-17  Timothy Hatcher  <timothy@apple.com>
308
309            Make console.profile record to the Timeline.
310
311            https://bugs.webkit.org/show_bug.cgi?id=134643
312
313            Reviewed by Joseph Pecoraro.
314
315            * WebInspector/WebInspector.mm:
316            (-[WebInspector isProfilingJavaScript]):
317            (-[WebInspector toggleProfilingJavaScript:]):
318            (-[WebInspector startProfilingJavaScript:]):
319            (-[WebInspector stopProfilingJavaScript:]):
320            (-[WebInspector isJavaScriptProfilingEnabled]):
321            (-[WebInspector setJavaScriptProfilingEnabled:]):
322
3232014-07-17  Dean Jackson  <dino@apple.com>
324
325        <rdar://problem/17675068> Disable some features on this branch.
326
327        Reviewed originally by Simon Fraser.
328
329        Disable:
330        - CSS_EXCLUSIONS
331        - CSS_GRID_LAYOUT
332        - INPUT_TYPE_COLOR
333        - INPUT_TYPE_COLOR_POPUP
334        - CANVAS_PATH
335        - CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED
336        - INDIE_UI
337        - SHARED_WORKERS
338        - NAVIGATOR_HWCONCURRENCY
339        - GAMEPAD
340        - PICTURE_SIZES
341        - CSS3_CONDITIONAL_RULES
342        - WILL_REVEAL_EDGE_EVENTS
343
344        * Configurations/FeatureDefines.xcconfig:
345
3462014-07-16  David Kilzer  <ddkilzer@apple.com>
347
348        [iOS] Update order file paths for WebKit and WebKit2
349        <http://webkit.org/b/134993>
350        <rdar://problem/17557776>
351
352        Reviewed by Darin Adler.
353
354        * Configurations/Base.xcconfig: Rename WebKit.order to
355        WebKitLegacy.order.
356
3572014-07-16  Brady Eidson  <beidson@apple.com>
358
359        Add WebSecurityOrigin "webSecurityOriginFromDatabaseIdentifier" SPI and change _websiteDataURLForContainerWithURL: SPI
360        <rdar://problem/17454712> and https://bugs.webkit.org/show_bug.cgi?id=134984
361
362        Reviewed by Dan Bernstein.
363
364        * WebCoreSupport/WebSecurityOrigin.mm:
365        (+[WebSecurityOrigin webSecurityOriginFromDatabaseIdentifier:]): Added.
366        (-[WebSecurityOrigin initWithURL:]): Update using RefPtr API to avoid a ref().
367
3682014-07-15  Myles C. Maxfield  <mmaxfield@apple.com>
369
370        [OSX] [WK1] Crash when exiting fullscreen
371        https://bugs.webkit.org/show_bug.cgi?id=134943
372
373        Reviewed by Dean Jackson.
374
375        AppKit doesn't remove a view from the Key View Loop when removing it from its superview.
376
377        This codepath is already "tested" in fullscreen/full-screen-cancel.html, but because of our
378        testing infrastructure, the broken codepath doesn't actually get hit in DRT. Therefore,
379        there is no test.
380
381        * WebView/WebFullScreenController.mm:
382        (-[WebFullScreenController enterFullScreen:]):
383
384        * WebCoreSupport/WebSecurityOriginPrivate.h:
385
3862014-07-14  Bear Travis  <betravis@adobe.com>
387
388        [Feature Queries] Enable Feature Queries on Mac
389        https://bugs.webkit.org/show_bug.cgi?id=134404
390
391        Reviewed by Antti Koivisto.
392
393        Enable Feature Queries on Mac and resume running the
394        feature tests.
395
396        * Configurations/FeatureDefines.xcconfig: Turn on
397        ENABLE_CSS3_CONDITIONAL_RULES.
398
3992014-07-11  Zalan Bujtas  <zalan@apple.com>
400
401        Subpixel layout: return integral results for offset*, client*, scroll* by default.
402        https://bugs.webkit.org/show_bug.cgi?id=134651
403
404        Reviewed by Simon Fraser.
405
406        Revert to returning integral values for Element.offset* client* scroll* by default.
407        Fractional values break number of sites(tight design) and JS frameworks(fail to handle fractional values).
408
409        Since snapped dimension depends on both the original point and the width/height of the box,
410        we need to call RenderBoxModelObject::pixelSnapped*() helpers, instead of round().
411
412        Covered by existing tests
413
414        * WebView/WebPreferences.mm:
415        (+[WebPreferences initialize]):
416
4172014-07-10  Joseph Pecoraro  <pecoraro@apple.com>
418
419        [Mac] NSWindow warning: adding an unknown subview opening detached Inspector
420        https://bugs.webkit.org/show_bug.cgi?id=134813
421
422        Reviewed by Timothy Hatcher.
423
424        * WebCoreSupport/WebInspectorClient.mm:
425        (-[WebInspectorWindowController window]):
426        Use a selector that will avoid the warning message.
427
4282014-07-09  Ryosuke Niwa  <rniwa@webkit.org>
429
430        REGRESSION(r167770): Cannot login in Evernote Safari extension
431        https://bugs.webkit.org/show_bug.cgi?id=134776
432
433        Reviewed by Enrica Casucci.
434
435        Unfortunately, NSWindowDidBecomeKeyNotification does not notify us when a popover becomes key
436        so we need to keep using the SPI (_windowChangedKeyState) I removed in r167770.
437
438        * WebView/WebView.mm:
439        (-[WebView _windowChangedKeyState]):
440
4412014-07-09  Enrica Casucci  <enrica@apple.com>
442
443        Implement Editor::fontAttributesForSelectionStart() or iOS.
444        https://bugs.webkit.org/show_bug.cgi?id=134771
445        <rdar://problem/16167838>
446
447        Reviewed by Ryosuke Niwa.
448
449        * WebView/WebViewPrivate.h:
450
4512014-07-08  Tim Horton  <timothy_horton@apple.com>
452
453        [WK2] Expose a few drawing/compositing settings on WKPreferences(Private)
454        https://bugs.webkit.org/show_bug.cgi?id=134645
455
456        Reviewed by Dan Bernstein.
457
458        * WebView/WebPreferences.mm:
459        (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]):
460        Remove an extra unnecessary space.
461
4622014-07-03  Daniel Bates  <dabates@apple.com>
463
464        Add WTF::move()
465        https://bugs.webkit.org/show_bug.cgi?id=134500
466
467        Rubber-stamped by Anders Carlsson.
468
469        Substitute WTF::move() for std::move().
470
471        * History/WebHistoryItem.mm:
472        (-[WebHistoryItem initFromDictionaryRepresentation:]):
473        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
474        (WebKit::NetscapePluginInstanceProxy::setCurrentReply):
475        * Plugins/WebNetscapePluginView.mm:
476        (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
477        * WebCoreSupport/WebFrameLoaderClient.mm:
478        (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
479        (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
480        (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
481        (WebFrameLoaderClient::dispatchWillSubmitForm):
482        * WebCoreSupport/WebInspectorClient.mm:
483        (WebInspectorClient::openInspectorFrontend):
484        (WebInspectorFrontendClient::WebInspectorFrontendClient):
485        * WebView/WebArchive.mm:
486        (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
487
4882014-07-01  Mark Rowe  <mrowe@apple.com>
489
490        <https://webkit.org/b/134522> Remove duplication in code that prepares the user agent string on Mac and iOS
491
492        Reviewed by Simon Fraser.
493
494        * WebView/WebView.mm:
495        (webKitBundleVersionString): Return the entire CFBundleVersion now that WebCore handles formatting it.
496        (+[WebView _standardUserAgentWithApplicationName:]):
497
4982014-07-02  Dan Bernstein  <mitz@apple.com>
499
500        Remove some code only needed for versions of Safari that are no longer supported
501        https://bugs.webkit.org/show_bug.cgi?id=134537
502
503        Reviewed by Anders Carlsson.
504
505        * History/WebHistoryItem.mm:
506        * Misc/WebKitVersionChecks.h:
507        * WebCoreSupport/WebSecurityOrigin.mm:
508        (-[WebSecurityOrigin domain]): Deleted.
509        * WebInspector/WebInspector.mm:
510        (-[WebInspector showTimeline:]): Deleted.
511        (+[WebInspector webInspector]): Deleted.
512        (-[WebInspector setWebFrame:]): Deleted.
513        (-[WebInspector window]): Deleted.
514        (-[WebInspector showWindow:]): Deleted.
515        * WebView/WebFrame.mm:
516        (-[WebFrame reload]):
517        * WebView/WebPDFView.mm:
518        (-[WebPDFView menuForEvent:]):
519        (-[WebPDFView _anyPDFTagsFoundInMenu:]): Deleted.
520        * WebView/WebView.mm:
521        (-[WebView _initWithFrame:frameName:groupName:]):
522        (-[WebView _preferencesChanged:]):
523        (-[WebView initWithFrame:frameName:groupName:]):
524        (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]): Deleted.
525        (+[WebView _setAlwaysUseATSU:]): Deleted.
526        (-[WebView _needsUnrestrictedGetMatchedCSSRules]): Deleted.
527        * WebView/WebViewPrivate.h:
528
5292014-07-01  Dan Bernstein  <mitz@apple.com>
530
531        Remove WebChromeClient code that was only needed for Safari versions earlier than 3.1
532        https://bugs.webkit.org/show_bug.cgi?id=134531
533
534        Reviewed by Daniel Bates.
535
536        * WebCoreSupport/WebChromeClient.mm:
537        (WebChromeClient::exceededDatabaseQuota):
538
5392014-06-29  Yoav Weiss  <yoav@yoav.ws>
540
541        Add support for HTMLImageElement's sizes attribute
542        https://bugs.webkit.org/show_bug.cgi?id=133620
543
544        Reviewed by Dean Jackson.
545
546        Added an ENABLE_PICTURE_SIZES compile flag.
547
548        * Configurations/FeatureDefines.xcconfig:
549
5502014-06-27  Sam Weinig  <sam@webkit.org>
551
552        InfoClick (from Nisus Software) dies on viewing found items
553        <rdar://problem/17395601>
554        https://bugs.webkit.org/show_bug.cgi?id=134410
555
556        Reviewed by Andy Estes.
557
558        InfoClick was calling -[WebPreferences setPrivateBrowsingEnabled:] before
559        setting up a WebView (or anything else that would have set up WebKitSystemInterface),
560        which now requires a set up WebKitSystemInterface. We can fix this by initializing
561        it from +[WebPreferences initialize].
562
563        * WebView/WebPreferences.mm:
564        (+[WebPreferences initialize]):
565        Add call to InitWebCoreSystemInterface().
566
567        (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
568        Remove now unnecessary call to InitWebCoreSystemInterface().
569
5702014-06-27  Peyton Randolph  <prandolph@apple.com>
571
572        Add feature flag for link long-press gesture.
573        https://bugs.webkit.org/show_bug.cgi?id=134262
574
575        Reviewed by Enrica Casucci.
576
577        * Configurations/FeatureDefines.xcconfig:
578        Add ENABLE_LINK_LONG_PRESS.
579
5802014-06-26  Brady Eidson  <beidson@apple.com>
581
582        Remove use of PlatformStrategies for Gamepad API.
583        https://bugs.webkit.org/show_bug.cgi?id=134348
584
585        Reviewed by Dean Jackson.
586
587        Remove all the GamepadStrategy gunk:
588        * WebCoreSupport/WebHIDGamepadController.mm: Removed.
589        * WebCoreSupport/WebPlatformStrategies.h:
590        * WebCoreSupport/WebPlatformStrategies.mm:
591        (WebPlatformStrategies::createGamepadStrategy): Deleted.
592        (WebPlatformStrategies::startMonitoringGamepads): Deleted.
593        (WebPlatformStrategies::stopMonitoringGamepads): Deleted.
594        (WebPlatformStrategies::platformGamepads): Deleted.
595
596        Instead, install the HIDGamepadProvider as the shared GamepadProvider:
597        * WebView/WebView.mm:
598        (WebKitInitializeGamepadProviderIfNecessary):
599        (-[WebView _commonInitializationWithFrameName:groupName:]):
600
6012014-06-26  Joseph Pecoraro  <pecoraro@apple.com>
602
603        [iOS] Remove User Default for iOS TextField Debugging
604        https://bugs.webkit.org/show_bug.cgi?id=134356
605
606        Reviewed by Timothy Hatcher.
607
608        * WebView/WebPreferenceKeysPrivate.h:
609        * WebView/WebView.mm:
610        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
611
6122014-06-25  Brady Eidson  <beidson@apple.com>
613
614        Add HID-based gamepad implementation for Mac
615        https://bugs.webkit.org/show_bug.cgi?id=134324
616
617        Reviewed by Dean Jackson.
618
619        Add a class that acts as an intermediary between the GamepadStrategyClient
620        and the HIDGamepadListener:
621        * WebCoreSupport/WebHIDGamepadController.h:
622        * WebCoreSupport/WebHIDGamepadController.mm:
623        (WebHIDGamepadController::shared):
624        (WebHIDGamepadController::WebHIDGamepadController):
625        (WebHIDGamepadController::gamepadConnected):
626        (WebHIDGamepadController::gamepadDisconnected):
627        (WebHIDGamepadController::registerGamepadStrategyClient):
628        (WebHIDGamepadController::unregisterGamepadStrategyClient):
629
630        Implement the strategies by using the HIDGamepadListener:
631        * WebCoreSupport/WebPlatformStrategies.mm:
632        (WebPlatformStrategies::startMonitoringGamepads):
633        (WebPlatformStrategies::stopMonitoringGamepads):
634        (WebPlatformStrategies::platformGamepads):
635
6362014-06-25  Brady Eidson  <beidson@apple.com>
637
638        Add new platform gamepad abstractions
639        https://bugs.webkit.org/show_bug.cgi?id=134325
640
641        Reviewed by Dean Jackson.
642
643        * WebCoreSupport/WebPlatformStrategies.h:
644        * WebCoreSupport/WebPlatformStrategies.mm:
645        (WebPlatformStrategies::createGamepadStrategy):
646        (WebPlatformStrategies::startMonitoringGamepads):
647        (WebPlatformStrategies::stopMonitoringGamepads):
648        (WebPlatformStrategies::platformGamepads):
649
6502014-06-25  Gavin Barraclough  <baraclough@apple.com>
651
652        Should _updateVisibilityState on view hide/unhide.
653        https://bugs.webkit.org/show_bug.cgi?id=134314
654        rdar://17171803
655
656        Reviewed by Sam Weinig.
657
658        * WebView/WebView.mm:
659        (-[WebView viewDidHide]):
660        (-[WebView viewDidUnhide]):
661
6622014-06-25  Chris Fleizach  <cfleizach@apple.com>
663
664        Add an undo group for each dictated utterance in WebKit
665        https://bugs.webkit.org/show_bug.cgi?id=134086
666
667        Reviewed by Enrica Casucci.
668
669        * WebView/WebHTMLView.mm:
670        (-[WebHTMLView validAttributesForMarkedText]):
671        (-[WebHTMLView insertText:]):
672
6732014-06-25  Dana Burkart  <dburkart@apple.com>
674
675        Add support for 5-tuple versioning.
676
677        Reviewed by David Farler.
678
679        * Configurations/Version.xcconfig:
680
6812014-06-25  Laszlo Gombos  <l.gombos@samsung.com>
682
683        Remove build guard for progress element
684        https://bugs.webkit.org/show_bug.cgi?id=134292
685
686        Reviewed by Benjamin Poulain.
687
688        * Configurations/FeatureDefines.xcconfig:
689
6902014-06-24  Benjamin Poulain  <bpoulain@apple.com>
691
692        WK1 WebFrameNetworkingContext cleanup: do not instanciate an empty NSString to create an empty WTF::String
693        https://bugs.webkit.org/show_bug.cgi?id=134222
694
695        Reviewed by Andreas Kling.
696
697        * WebCoreSupport/WebFrameNetworkingContext.mm:
698        (WebFrameNetworkingContext::sourceApplicationIdentifier):
699
7002014-06-24  Joseph Pecoraro  <pecoraro@apple.com>
701
702        [iOS]: WK2 Inspector Node Highlighting
703        https://bugs.webkit.org/show_bug.cgi?id=134257
704
705        Reviewed by Timothy Hatcher.
706
707        * WebInspector/WebNodeHighlightView.mm:
708        (-[WebNodeHighlightView layoutSublayers:]):
709
7102014-06-24  Brady Eidson  <beidson@apple.com>
711
712        Enable GAMEPAD in the Mac build, but disabled at runtime.
713        https://bugs.webkit.org/show_bug.cgi?id=134255
714
715        Reviewed by Dean Jackson.
716
717        * Configurations/FeatureDefines.xcconfig:
718
719        * WebView/WebPreferenceKeysPrivate.h:
720        * WebView/WebPreferences.mm:
721        (-[WebPreferences gamepadsEnabled]):
722        (-[WebPreferences setGamepadsEnabled:]):
723        * WebView/WebPreferencesPrivate.h:
724
725        * WebView/WebView.mm:
726        (-[WebView _preferencesChanged:]):
727
7282014-06-24  Dan Bernstein  <mitz@apple.com>
729
730        Fixed the iOS build after r170358.
731
732        * WebView/WebView.mm:
733        (kit):
734
7352014-06-23  Anders Carlsson  <andersca@apple.com>
736
737        Remove unused history visit code from WebHistoryItem
738        https://bugs.webkit.org/show_bug.cgi?id=134201
739
740        Reviewed by Sam Weinig.
741
742        * History/HistoryPropertyList.h:
743        * History/HistoryPropertyList.mm:
744        (HistoryPropertyListWriter::HistoryPropertyListWriter):
745        (HistoryPropertyListWriter::writeHistoryItem):
746        * History/WebHistory.mm:
747        (-[WebHistoryPrivate visitedURL:withTitle:]):
748        (-[WebHistoryPrivate addItem:discardDuplicate:]):
749        (-[WebHistory _visitedURL:withTitle:method:wasFailure:]):
750        (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]): Deleted.
751        (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]): Deleted.
752        * History/WebHistoryInternal.h:
753        * History/WebHistoryItem.mm:
754        (-[WebHistoryItem copyWithZone:]):
755        (-[WebHistoryItem initFromDictionaryRepresentation:]):
756        (-[WebHistoryItem _visitedWithTitle:]):
757        (-[WebHistoryItem setVisitCount:]): Deleted.
758        (-[WebHistoryItem _mergeAutoCompleteHints:]): Deleted.
759        (-[WebHistoryItem _visitedWithTitle:increaseVisitCount:]): Deleted.
760        (-[WebHistoryItem _recordInitialVisit]): Deleted.
761        (timeToDay): Deleted.
762        (-[WebHistoryItem _padDailyCountsForNewVisit:]): Deleted.
763        (-[WebHistoryItem _collapseDailyVisitsToWeekly]): Deleted.
764        (-[WebHistoryItem _recordVisitAtTime:increaseVisitCount:]): Deleted.
765        (-[WebHistoryItem _setLastVisitedTimeInterval:]): Deleted.
766        * History/WebHistoryItemInternal.h:
767        * History/WebHistoryItemPrivate.h:
768        * WebCoreSupport/WebFrameLoaderClient.mm:
769        (WebFrameLoaderClient::updateGlobalHistory):
770
7712014-06-24  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
772
773        REGRESSION(r170235): Remove incorrect ifdef guard
774        https://bugs.webkit.org/show_bug.cgi?id=134246
775
776        Reviewed by Csaba Osztrogonác.
777
778        * WebView/WebView.mm:
779        (-[WebView _visibilityState]):
780
7812014-06-23  Anders Carlsson  <andersca@apple.com>
782
783        Fix build.
784
785        * WebCoreSupport/WebSystemInterface.mm:
786        (InitWebCoreSystemInterface):
787
7882014-06-21  Dan Bernstein  <mitz@apple.com>
789
790        Tried to fix the iOS build after r170235.
791
792        * WebView/WebView.mm:
793
7942014-06-21  Brady Eidson  <beidson@apple.com>
795
796        Gamepad API - Deprecate the existing implementation
797        https://bugs.webkit.org/show_bug.cgi?id=134108
798
799        Reviewed by Timothy Hatcher.
800
801        -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it
802        -Move some implementation files into a "deprecated" subdirectory.
803
804        * Configurations/FeatureDefines.xcconfig:
805
8062014-06-21  Commit Queue  <commit-queue@webkit.org>
807
808        Unreviewed, rolling out r170244.
809        https://bugs.webkit.org/show_bug.cgi?id=134157
810
811        GTK/EFL bindings generator works differently, making this
812        patch not work there.  Will fix entire patch after a rollout.
813        (Requested by bradee-oh on #webkit).
814
815        Reverted changeset:
816
817        "Gamepad API - Deprecate the existing implementation"
818        https://bugs.webkit.org/show_bug.cgi?id=134108
819        http://trac.webkit.org/changeset/170244
820
8212014-06-21  Brady Eidson  <beidson@apple.com>
822
823        Gamepad API - Deprecate the existing implementation
824        https://bugs.webkit.org/show_bug.cgi?id=134108
825
826        Reviewed by Timothy Hatcher.
827
828        -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it
829        -Add the "Deprecated" suffix to some implementation files
830
831        * Configurations/FeatureDefines.xcconfig:
832
8332014-06-21  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
834
835        Removing PAGE_VISIBILITY_API compile guard.
836        https://bugs.webkit.org/show_bug.cgi?id=133844
837
838        Reviewed by Gavin Barraclough.
839
840        * Configurations/FeatureDefines.xcconfig:
841        * WebView/WebView.mm:
842        (-[WebView _preferencesChanged:]):
843        (-[WebView _visibilityState]):
844
8452014-06-18  Anders Carlsson  <andersca@apple.com>
846
847        Make FrameLoadType a strongly typed enum
848        https://bugs.webkit.org/show_bug.cgi?id=134047
849
850        Reviewed by Andreas Kling.
851
852        * WebView/WebFrame.mm:
853        (toWebFrameLoadType):
854        (-[WebFrame _loadType]):
855        * WebView/WebView.mm:
856        (-[WebView _loadBackForwardListFromOtherView:]):
857        (-[WebView goToBackForwardItem:]):
858
8592014-06-18  Daniel Bates  <dabates@apple.com>
860
861        REGRESSION (r167856): Unable to log into HSBC app
862        https://bugs.webkit.org/show_bug.cgi?id=133991
863        <rdar://problem/17044839>
864
865        Reviewed by David Kilzer.
866
867        Only enable the setting allowNavigationToInvalidURL for iOS app linked against WebKit/UIKit before iOS 8.
868
869        * Misc/WebKitVersionChecks.h: Added macro constant WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION.
870        * WebView/WebView.mm:
871        (-[WebView _preferencesChanged:]): Enable or disable the setting allowNavigationToInvalidURL as appropriate.
872
8732014-06-18  Anders Carlsson  <andersca@apple.com>
874
875        Adopt modern C++11 loops and fix WebArchive creation functions
876        https://bugs.webkit.org/show_bug.cgi?id=134032
877
878        Reviewed by Andreas Kling.
879
880        * WebView/WebArchive.mm:
881        (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
882        * WebView/WebDataSource.mm:
883        (-[WebDataSource subresources]):
884
8852014-06-15  Anders Carlsson  <andersca@apple.com>
886
887        Add an autorelease() member function to RetainPtr
888        https://bugs.webkit.org/show_bug.cgi?id=133929
889
890        Reviewed by Dan Bernstein.
891
892        * WebView/WebDataSource.mm:
893        (-[WebDataSource data]):
894        * WebView/WebHTMLView.mm:
895        (-[WebHTMLView _selectionDraggingImage]):
896        (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
897        * WebView/WebResource.mm:
898        (-[WebResource data]):
899
9002014-06-11  Jeremy Jones  <jeremyj@apple.com>
901
902        WebFrameNetworkContext should not have a sourceApplicationIdentifier in WK1.
903        https://bugs.webkit.org/show_bug.cgi?id=133772
904
905        Reviewed by Jer Noble.
906
907        Return empty string from sourceApplicationIdentifier for WK1.
908
909        * WebCoreSupport/WebFrameNetworkingContext.mm:
910        (WebFrameNetworkingContext::sourceApplicationIdentifier):
911
9122014-06-10  Timothy Horton  <timothy_horton@apple.com>
913
914        Factor repeated CFRunLoopObserver code out
915        https://bugs.webkit.org/show_bug.cgi?id=133690
916
917        Reviewed by Simon Fraser.
918
919        * WebView/WebViewData.h:
920
9212014-06-05  Pratik Solanki  <psolanki@apple.com>
922
923        Remove unsused method _setAcceleratedImageDecoding
924        https://bugs.webkit.org/show_bug.cgi?id=133554
925
926        Reviewed by Jon Honeycutt.
927
928        * WebView/WebView.mm:
929        (+[WebView _setAcceleratedImageDecoding:]): Deleted.
930        * WebView/WebViewPrivate.h:
931
9322014-06-05  Benjamin Poulain  <bpoulain@apple.com>
933
934        [iOS][WK2] Add device orientation
935        https://bugs.webkit.org/show_bug.cgi?id=133530
936
937        Reviewed by Tim Horton.
938
939        * WebView/WebFrame.mm:
940        (-[WebFrame deviceOrientationChanged]):
941        (-[WebFrame sendOrientationChangeEvent:]):
942        * WebView/WebFramePrivate.h:
943
9442014-05-31  Anders Carlsson  <andersca@apple.com>
945
946        Change DeferrableOneShotTimer to use std::function instead of being a class template
947        https://bugs.webkit.org/show_bug.cgi?id=133423
948
949        Reviewed by Antti Koivisto.
950
951        * WebView/WebView.mm:
952        (+[WebView _setCacheModel:]):
953
9542014-05-27  Jon Lee  <jonlee@apple.com>
955
956        Update ENABLE(MEDIA_SOURCE) on Mac
957        https://bugs.webkit.org/show_bug.cgi?id=133141
958
959        Reviewed by Darin Adler.
960
961        * Configurations/FeatureDefines.xcconfig:
962
9632014-05-27  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
964
965        Remove BLOB guards
966        https://bugs.webkit.org/show_bug.cgi?id=132863
967
968        Reviewed by Csaba Osztrogonác.
969
970        * Configurations/FeatureDefines.xcconfig:
971        * WebView/WebView.mm:
972        (+[WebView _canHandleRequest:forMainFrame:]):
973
9742014-05-24  Chris Fleizach  <cfleizach@apple.com>
975
976        AX: fix coordinate mapping for iOS accessibility
977        https://bugs.webkit.org/show_bug.cgi?id=133188
978
979        Reviewed by Sam Weinig.
980
981        * WebCoreSupport/WebChromeClient.h:
982        * WebCoreSupport/WebChromeClient.mm:
983        (WebChromeClient::accessibilityScreenToRootView):
984        (WebChromeClient::rootViewToAccessibilityScreen):
985
9862014-05-23  Jeremy Jones  <jeremyj@apple.com>
987
988        Hide fullscreen immediately when switching tabs.
989        https://bugs.webkit.org/show_bug.cgi?id=133239
990
991        Reviewed by Eric Carlson.
992
993        Renamed a function to better describe it's new functionality.
994
995        * WebView/WebView.mm:
996        (-[WebView viewDidMoveToWindow]):
997        now calls: requestHideAndExitFullscreen
998
9992014-05-20  Dean Jackson  <dino@apple.com>
1000
1001        [Mac] Allow popup menus to override default appearance
1002        https://bugs.webkit.org/show_bug.cgi?id=133129
1003
1004        Reviewed by Tim Horton.
1005
1006        Replace the call to wkPopupMenuWithSize with wkPopupMenu, now
1007        with extra parameters to indicate the control size and whether
1008        or not to draw the arrows at the end.
1009
1010        * WebCoreSupport/PopupMenuMac.mm:
1011        (PopupMenuMac::show):
1012
10132014-05-20  Eric Carlson  <eric.carlson@apple.com>
1014
1015        [Mac] do not deactivate an audio session that has running I/O
1016        https://bugs.webkit.org/show_bug.cgi?id=133127
1017
1018        Reviewed by Jer Noble.
1019
1020        * WebView/WebView.mm:
1021        (-[WebView _commonInitializationWithFrameName:groupName:]): Settings::setShouldManageAudioSession
1022            renamed to setShouldManageAudioSessionCategory, deal with it.
1023
10242014-05-19  Brady Eidson  <beidson@apple.com>
1025
1026        Use different AppKit API for image control menus.
1027        <rdar://problem/16807828> and https://bugs.webkit.org/show_bug.cgi?id=133087
1028
1029        Reviewed by Tim Horton.
1030
1031        For image control menus, use popUpMenuPositioningItem: instead of popUpContextMenu:
1032        
1033        * WebCoreSupport/WebContextMenuClient.h:
1034        * WebCoreSupport/WebContextMenuClient.mm:
1035        (WebContextMenuClient::contextMenuForEvent):
1036        (WebContextMenuClient::showContextMenu):
1037
10382014-05-19  Andy Estes  <aestes@apple.com>
1039
1040        Set WebKitSuppressesIncrementalRenderingKey to NO by default on both Mac and iOS
1041        https://bugs.webkit.org/show_bug.cgi?id=133073
1042
1043        Reviewed by Simon Fraser.
1044
1045        * WebView/WebPreferences.mm:
1046        (+[WebPreferences initialize]):
1047
10482014-05-18  Anders Carlsson  <andersca@apple.com>
1049
1050        Bring back two NSString category methods on iOS
1051        https://bugs.webkit.org/show_bug.cgi?id=133055
1052        <rdar://problem/16951983>
1053
1054        Reviewed by Adele Peterson.
1055
1056        * Misc/WebNSURLExtras.h:
1057        * Misc/WebNSURLExtras.mm:
1058        (-[NSString _webkit_unescapedQueryValue]):
1059        (-[NSString _webkit_queryKeysAndValues]):
1060
10612014-05-18  Rik Cabanier  <cabanier@adobe.com>
1062
1063        support for navigator.hardwareConcurrency
1064        https://bugs.webkit.org/show_bug.cgi?id=132588
1065
1066        Reviewed by Filip Pizlo.
1067
1068        * Configurations/FeatureDefines.xcconfig:
1069
10702014-05-17  Zalan Bujtas  <zalan@apple.com>
1071
1072        Subpixel rendering: Add subpixelCSSOMElementMetricsEnabled to WK1 WebPreferences.
1073        https://bugs.webkit.org/show_bug.cgi?id=133029
1074
1075        Reviewed by Simon Fraser.
1076
1077        To match the WK2 preferences API.
1078
1079        * WebView/WebPreferenceKeysPrivate.h:
1080        * WebView/WebPreferences.mm:
1081        (+[WebPreferences initialize]):
1082        (-[WebPreferences subpixelCSSOMElementMetricsEnabled]):
1083        (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]):
1084        * WebView/WebPreferencesPrivate.h:
1085        * WebView/WebView.mm:
1086        (-[WebView _preferencesChanged:]):
1087
10882014-05-16  Simon Fraser  <simon.fraser@apple.com>
1089
1090        Remove "region-based columns" prefs
1091        https://bugs.webkit.org/show_bug.cgi?id=133006
1092        <rdar://problem/16945824>
1093
1094        Reviewed by Dave Hyatt.
1095
1096        Remove "region-based columns" prefs and related code, since this is only
1097        way to render columns now.
1098
1099        * WebView/WebPreferenceKeysPrivate.h:
1100        * WebView/WebPreferences.mm:
1101        (+[WebPreferences initialize]):
1102        (-[WebPreferences setRegionBasedColumnsEnabled:]): Deleted.
1103        (-[WebPreferences regionBasedColumnsEnabled]): Deleted.
1104        * WebView/WebPreferencesPrivate.h:
1105        * WebView/WebView.mm:
1106        (-[WebView _preferencesChanged:]):
1107
11082014-05-15  Brady Eidson  <beidson@apple.com>
1109
1110        Crash in [WebSharingServicePickerController clear]
1111        <rdar://problem/16879073> and https://bugs.webkit.org/show_bug.cgi?id=132968
1112
1113        Reviewed by Tim Horton.
1114
1115        * Misc/WebSharingServicePickerController.mm:
1116        (-[WebSharingServicePickerController clear]): Add a RetainPtr protector so this object
1117          isn’t dealloc’ed partway through.
1118
11192014-05-15  Simon Fraser  <simon.fraser@apple.com>
1120
1121        Initialize the WebKitRegionBasedColumnsEnabled pref on iOS WK1
1122        https://bugs.webkit.org/show_bug.cgi?id=132969
1123
1124        Reviewed by Dan Bernstein.
1125        
1126        Move this outside the #if !PLATFORM(IOS) block.
1127
1128        * WebView/WebPreferences.mm:
1129        (+[WebPreferences initialize]):
1130
11312014-05-15  Simon Fraser  <simon.fraser@apple.com>
1132
1133        Clean up -[WebView _preferencesChanged]
1134        https://bugs.webkit.org/show_bug.cgi?id=132967
1135
1136        Reviewed by Sam Weinig.
1137        
1138        -[WebView _preferencesChanged] was a horrible mess of #ifdefs. Clean this up by
1139        moving all the #if PLATFORM() code together, and moving all the feature-define related
1140        settings to the end.
1141        
1142        No behavior changes, checked by diffing the resulting Settings with and without
1143        the patch, on OS X and iOS.
1144
1145        * WebView/WebView.mm:
1146        (-[WebView _preferencesChanged:]):
1147
11482014-05-15  Alex Christensen  <achristensen@webkit.org>
1149
1150        Add pointer lock to features without enabling it.
1151        https://bugs.webkit.org/show_bug.cgi?id=132961
1152
1153        Reviewed by Sam Weinig.
1154
1155        * Configurations/FeatureDefines.xcconfig:
1156        Added ENABLE_POINTER_LOCK to list of features.
1157        * WebView/WebPDFView.mm:
1158        (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1159        Added extra parameters needed when pointer lock is enabled.
1160
11612014-05-14  Brady Eidson  <beidson@apple.com>
1162
1163        Implement NSSharingServiceDelegate method "transitionImageForShareItem"
1164        <rdar://problem/16878020> and https://bugs.webkit.org/show_bug.cgi?id=132911
1165
1166        Reviewed by Tim Horton.
1167
1168        * Misc/WebSharingServicePickerController.mm:
1169        (-[WebSharingServicePickerController sharingService:transitionImageForShareItem:contentRect:]):
1170
1171        * WebCoreSupport/WebContextMenuClient.h:
1172        * WebCoreSupport/WebContextMenuClient.mm:
1173        (WebContextMenuClient::renderedImageForControlledImage): Paint the entire content rect for the controlled image
1174          into an ImageBuffer, then return the resulting NSImage. This only paints the image itself and not any
1175          overlapping content by setting the selection and appropriate painting mode.
1176
11772014-05-14  Brady Eidson  <beidson@apple.com>
1178
1179        sourceFrameOnScreenForShareItem: can be off by a pixel
1180        <rdar://problem/16878020> and https://bugs.webkit.org/show_bug.cgi?id=132911
1181
1182        Reviewed by Simon Fraser.
1183
1184        In a land of LayoutUnits and sub-pixel rendering, converting between IntRects and
1185        FloatRects can be error prone. So we now try to minimize such conversions.
1186
1187        * Misc/WebSharingServicePickerController.mm:
1188        (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
1189
1190        * WebCoreSupport/WebContextMenuClient.h:
1191        * WebCoreSupport/WebContextMenuClient.mm:
1192        (WebContextMenuClient::clientFloatRectForNode): Split this into a separate utility method
1193          as it will be shared with other code very soon. Instead of using absoluteBoundingBoxRect()
1194          which does lossy float->int conversions, try to keep things in terms of FloatRects as
1195          much as possible.
1196        (WebContextMenuClient::screenRectForHitTestNode): Call clientFloatRectForNode to get the
1197          FloatRect, then perform the lossy rounding conversion to an IntRect only once.
1198
11992014-05-14  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
1200
1201        Remove CSS_STICKY_POSITION guards
1202        https://bugs.webkit.org/show_bug.cgi?id=132676
1203
1204        Reviewed by Simon Fraser.
1205
1206        * Configurations/FeatureDefines.xcconfig:
1207
12082014-05-14  Antti Koivisto  <antti@apple.com>
1209
1210        GIF animations don't restart after scrolling with iOS WebKit1
1211        https://bugs.webkit.org/show_bug.cgi?id=132900
1212        <rdar://problem/16490858>
1213
1214        Reviewed by Andreas Kling.
1215
1216        * WebView/WebView.mm:
1217        (-[WebView _didFinishScrollingOrZooming]):
1218        
1219            Check if the animations need to be restarted after scrolling finishes.
1220
12212014-05-09  Joseph Pecoraro  <pecoraro@apple.com>
1222
1223        Web Inspector: Allow Remote Inspector to entitlement check UIProcess through WebProcess
1224        https://bugs.webkit.org/show_bug.cgi?id=132409
1225
1226        Reviewed by Timothy Hatcher.
1227
1228        Simplify the legacy iOS UIWebViewController case by passing on
1229        the host process pid and audit_token.
1230
1231        * WebView/WebView.mm:
1232        (-[WebView _setHostApplicationProcessIdentifier:auditToken:]):
1233        (-[WebView setHostApplicationBundleId:name:]): Deleted.
1234        (-[WebView hostApplicationBundleId]): Deleted.
1235        (-[WebView hostApplicationName]): Deleted.
1236        * WebView/WebViewData.h:
1237        * WebView/WebViewData.mm:
1238        (-[WebViewPrivate dealloc]):
1239        * WebView/WebViewPrivate.h:
1240
12412014-05-09  Benjamin Poulain  <benjamin@webkit.org>
1242
1243        [iOS] Switch geolocation to an explicit authorization query model
1244        https://bugs.webkit.org/show_bug.cgi?id=132717
1245
1246        Reviewed by Sam Weinig.
1247
1248        Since there is no warmup code, WebGeolocationPolicyListener no longer need to know about the provider,
1249        which is awesome :)
1250
1251        * WebCoreSupport/WebGeolocationClient.mm:
1252        (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:]):
1253        (-[WebGeolocationPolicyListener deny]):
1254        (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:]):
1255        (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:]):
1256        (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:provider:]): Deleted.
1257        (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:provider:]): Deleted.
1258        (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:provider:]): Deleted.
1259        * WebView/WebViewPrivate.h:
1260
12612014-05-08  Jer Noble  <jer.noble@apple.com>
1262
1263        [Mac, iOS] Add source application accounting to AVURLAsset.
1264        https://bugs.webkit.org/show_bug.cgi?id=132637
1265
1266        Reviewed by Eric Carlson.
1267
1268        Add accessor for sourceApplicationIdentifier.
1269
1270        * WebCoreSupport/WebFrameNetworkingContext.h:
1271        * WebCoreSupport/WebFrameNetworkingContext.mm:
1272        (WebFrameNetworkingContext::sourceApplicationIdentifier):
1273
12742014-05-08  Anders Carlsson  <andersca@apple.com>
1275
1276        Use a different install name for WebKitLegacy.framework for staged framework builds
1277        https://bugs.webkit.org/show_bug.cgi?id=132711
1278        <rdar://problem/16850620>
1279
1280        Reviewed by Dan Bernstein.
1281
1282        * Configurations/WebKitLegacy.xcconfig:
1283
12842014-05-08  Brady Eidson  <beidson@apple.com>
1285
1286        Wrap a new class definition with __has_include()
1287        <rdar://problem/16852395> and https://bugs.webkit.org/show_bug.cgi?id=132694
1288
1289        Reviewed by Tim Horton.
1290
1291        * Misc/WebSharingServicePickerController.mm:
1292
12932014-05-07  Pratik Solanki  <psolanki@apple.com>
1294
1295        Use system defaults for hardware jpeg decoding
1296        https://bugs.webkit.org/show_bug.cgi?id=132661
1297        <rdar://problem/11348201>
1298
1299        Reviewed by Tim Horton.
1300
1301        Remove code that explicitly disabled hardware image decoding. Let the system decide what to do.
1302
1303        * WebView/WebView.mm:
1304        (+[WebView _setAcceleratedImageDecoding:]):
1305        (+[WebView _acceleratedImageDecoding]): Deleted.
1306        * WebView/WebViewPrivate.h:
1307
13082014-05-07  Brent Fulgham  <bfulgham@apple.com>
1309
1310        [Mac, iOS] REGRESSION: WK2 YouTube support
1311        https://bugs.webkit.org/show_bug.cgi?id=132568
1312        <rdar://problem/11464344>
1313
1314        Reviewed by Darin Adler.
1315
1316        * Misc/WebNSURLExtras.h:
1317        * Misc/WebNSURLExtras.mm: Remove code that has been converted to C++
1318        and added to YouTubePluginReplacement.cpp.
1319        (-[NSURL _webkit_youTubeURL]):
1320        (-[NSString _webkit_queryKeysAndValues]):
1321        (createYouTubeURL): Deleted.
1322        (-[NSString _webkit_unescapedQueryValue]): Deleted.
1323
13242014-05-07  Jeremy Jones  <jeremyj@apple.com>
1325
1326        HTMLMediaElement should exitFullscreen when view is removed from the window.
1327        https://bugs.webkit.org/show_bug.cgi?id=132506
1328
1329        Reviewed by Tim Horton.
1330
1331        * WebView/WebView.mm:
1332        (-[WebView viewDidMoveToWindow]):
1333        Request WebVideoFullscreenController to exitFullscreen when view is removed from the window.
1334
13352014-05-07  Brady Eidson  <beidson@apple.com>
1336
1337        Image menu is offset by the amount the view is scrolled
1338        <rdar://problem/16818966> and https://bugs.webkit.org/show_bug.cgi?id=132663
1339
1340        Reviewed by Tim Horton.
1341
1342        * WebCoreSupport/WebContextMenuClient.mm:
1343        (WebContextMenuClient::showContextMenu): Use FrameView::contentsToWindow instead of contentsToRoot, 
1344          and skip the [NSView convertPoint:toView:] step.
1345
13462014-05-07  Simon Fraser  <simon.fraser@apple.com>
1347
1348        WebKit1 is flashy when compositing layers come and go
1349        https://bugs.webkit.org/show_bug.cgi?id=132655
1350
1351        Reviewed by Sam Weinig.
1352        
1353        In r166117 I removed code to flush compositing layers in FrameView::paintContents(),
1354        which caused problems when painting iframes. However, this removed a flush
1355        that WebKit1 relied on to flush compositing layers when painting, which caused
1356        flashing when compositing layers come and go, and broke WebView snapshotting
1357        in some cases.
1358        
1359        Fix by adding back compositing layer flushing, but this time in WebKit1's
1360        -viewWillDraw code path. This allows removal of some flushing in DumpRenderTree.
1361
1362        * WebView/WebHTMLView.mm:
1363        (-[WebHTMLView viewWillDraw]):
1364        * WebView/WebView.mm:
1365        (-[WebView _flushCompositingChanges]):
1366        * WebView/WebViewInternal.h:
1367        * WebView/WebViewPrivate.h:
1368
13692014-05-07  Manuel Rego Casasnovas  <rego@igalia.com>
1370
1371        [CSS Grid Layout] Remove runtime feature
1372        https://bugs.webkit.org/show_bug.cgi?id=132382
1373
1374        Reviewed by Benjamin Poulain.
1375
1376        Remove cssGridLayoutEnabled setting usage.
1377
1378        * WebKit.order:
1379        * WebView/WebPreferenceKeysPrivate.h:
1380        * WebView/WebPreferences.mm:
1381        (+[WebPreferences initialize]):
1382        (-[WebPreferences cssGridLayoutEnabled]): Deleted.
1383        (-[WebPreferences setCSSGridLayoutEnabled:]): Deleted.
1384        * WebView/WebPreferencesPrivate.h:
1385        * WebView/WebView.mm:
1386        (-[WebView _preferencesChanged:]):
1387
13882014-05-06  Dean Jackson  <dino@apple.com>
1389
1390        [Mac] Allow focus rings to redraw themselves if necessary
1391        https://bugs.webkit.org/show_bug.cgi?id=132593
1392
1393        Reviewed by Simon Fraser.
1394
1395        * WebCoreSupport/WebSystemInterface.mm:
1396        (InitWebCoreSystemInterface): Add DrawFocusRingAtTime and DrawCellFocusRingWithFrameAtTime.
1397
13982014-05-06  Brady Eidson  <beidson@apple.com>
1399
1400        Don't select an image that is about to have its menu shown.
1401        <rdar://problem/16807845> and https://bugs.webkit.org/show_bug.cgi?id=132579
1402
1403        Reviewed by Tim Horton.
1404
1405        * Misc/WebSharingServicePickerController.mm:
1406        (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
1407          Call the new replaceNodeFromPasteboard API instead of readSelectionFromPasteboard.
1408
14092014-05-06  Anders Carlsson  <andersca@apple.com>
1410
1411        Move the WebKitLegacy header check to the right file
1412        https://bugs.webkit.org/show_bug.cgi?id=132620
1413        <rdar://problem/16815716>
1414
1415        Reviewed by Dan Bernstein.
1416
1417        * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make:
1418        * WebKitLegacy/WebKit.h:
1419
14202014-05-06  Anders Carlsson  <andersca@apple.com>
1421
1422        Put WebKitPluginHost.app in WebKitLegacy.framework
1423        https://bugs.webkit.org/show_bug.cgi?id=132592
1424        <rdar://problem/15920046>
1425
1426        Reviewed by Dan Bernstein.
1427
1428        * Plugins/Hosted/NetscapePluginHostManager.mm:
1429        (WebKit::NetscapePluginHostManager::spawnPluginHost):
1430
14312014-05-06  Darin Adler  <darin@apple.com>
1432
1433        [iOS] Fix two more AdoptCF I missed in my last patch.
1434
1435        * WebView/WebHTMLView.mm:
1436        (imageFromRect): Use adoptCF instead of AdoptCF.
1437
14382014-05-05  Andreas Kling  <akling@apple.com>
1439
1440        Unreviewed, rolling out r168334.
1441
1442        Broke builds.
1443
1444        Reverted changeset:
1445
1446        "Put WebKitPluginHost.app in WebKitLegacy.framework"
1447        https://bugs.webkit.org/show_bug.cgi?id=132592
1448        http://trac.webkit.org/changeset/168334
1449
14502014-05-05  Anders Carlsson  <andersca@apple.com>
1451
1452        Put WebKitPluginHost.app in WebKitLegacy.framework
1453        https://bugs.webkit.org/show_bug.cgi?id=132592
1454        <rdar://problem/15920046>
1455
1456        Reviewed by Dan Bernstein.
1457
1458        * Plugins/Hosted/NetscapePluginHostManager.mm:
1459        (WebKit::NetscapePluginHostManager::spawnPluginHost):
1460
14612014-05-02  Brady Eidson  <beidson@apple.com>
1462
1463        Implement new delegate method -sharingService:sourceFrameOnScreenForShareItem:.
1464        <rdar://problem/16797425> and https://bugs.webkit.org/show_bug.cgi?id=132484
1465
1466        Reviewed by Tim Horton.
1467
1468        * Misc/WebSharingServicePickerController.mm:
1469        (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
1470
1471        * WebCoreSupport/WebContextMenuClient.h:
1472        * WebCoreSupport/WebContextMenuClient.mm:
1473        (WebContextMenuClient::screenRectForHitTestNode):
1474
14752014-05-02  Brady Eidson  <beidson@apple.com>
1476
1477        Crash inside [WebSharingServicePickerController clear]
1478        <rdar://problem/16791944> and https://bugs.webkit.org/show_bug.cgi?id=132477
1479
1480        Reviewed by Tim Horton.
1481
1482        * Misc/WebSharingServicePickerController.h:
1483        * Misc/WebSharingServicePickerController.mm:
1484        (-[WebSharingServicePickerController clear]): clear can be called twice, so null check _menuClient.
1485
1486        * WebCoreSupport/WebContextMenuClient.h:
1487        * WebCoreSupport/WebContextMenuClient.mm:
1488        (WebContextMenuClient::~WebContextMenuClient): For a sanity check, call clear on the picker here.
1489
14902014-05-01  Tim Horton  <timothy_horton@apple.com>
1491
1492        More 32-bit build fixes.
1493
1494        * Misc/WebSharingServicePickerController.mm:
1495        (-[WebSharingServicePickerController sharingService:didShareItems:]):
1496
14972014-05-01  Tim Horton  <timothy_horton@apple.com>
1498
1499        Temporarily "fix" the 32-bit build.
1500
1501        * Misc/WebSharingServicePickerController.mm:
1502        This will fail miserably at runtime, but we shouldn't ever get here in a 32-bit process.
1503
15042014-05-01  Brady Eidson  <beidson@apple.com>
1505
1506        Update service picker API usage.
1507        <rdar://problem/16772674> and https://bugs.webkit.org/show_bug.cgi?id=132452
1508
1509        Reviewed by Tim Horton.
1510
1511        * Misc/WebSharingServicePickerController.h:
1512        * Misc/WebSharingServicePickerController.mm:
1513        (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
1514          Factor out a common "didShare" handler that optionally validates whether the data represents an image.
1515        (-[WebSharingServicePickerController sharingService:didShareItems:]): Update API usage, including marshalling
1516          on off-main thread call back to the main thread.
1517
1518        * WebCoreSupport/WebContextMenuClient.mm:
1519        (WebContextMenuClient::contextMenuForEvent): Update API usage.
1520
15212014-05-01  Anders Carlsson  <andersca@apple.com>
1522
1523        Support OS-version-specific install paths for WebKit.framework
1524        https://bugs.webkit.org/show_bug.cgi?id=132448
1525        <rdar://problem/16784932>
1526
1527        Reviewed by Dan Bernstein.
1528
1529        * WebKitLegacy/WebKit.m:
1530        Add version specific install names.
1531
15322014-04-30  Alexey Proskuryakov  <ap@apple.com>
1533
1534        Roll out fix for https://bugs.webkit.org/show_bug.cgi?id=131637:
1535        Clean up unnecessary methods in the BackForwardClient interface
1536
1537        It broke a regression test and an API test.
1538
1539        * History/WebBackForwardList.mm:
1540        (-[WebBackForwardList initWithBackForwardList:]):
1541        (-[WebBackForwardList init]):
1542        (-[WebBackForwardList dealloc]):
1543        (-[WebBackForwardList finalize]):
1544        (-[WebBackForwardList setPageCacheSize:]):
1545        (-[WebBackForwardList pageCacheSize]):
1546        * History/WebBackForwardListInternal.h:
1547        * WebCoreSupport/WebFrameLoaderClient.mm:
1548        (WebFrameLoaderClient::canCachePage):
1549        * WebView/WebFrameView.mm:
1550        (-[WebFrameView keyDown:keyDown:]):
1551        * WebView/WebView.mm:
1552        (-[WebView _loadBackForwardListFromOtherView:]):
1553        (-[WebView initWithCoder:]):
1554        (-[WebView encodeWithCoder:]):
1555        (-[WebView backForwardList]):
1556        (-[WebView setMaintainsBackForwardList:]):
1557
15582014-04-30  Simon Fraser  <simon.fraser@apple.com>
1559
1560        Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO
1561        https://bugs.webkit.org/show_bug.cgi?id=132396
1562
1563        Reviewed by Eric Carlson.
1564
1565        Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code.
1566
1567        * Configurations/FeatureDefines.xcconfig:
1568        * Plugins/WebPluginContainerPrivate.h:
1569        * Plugins/WebPluginController.h:
1570        * Plugins/WebPluginController.mm:
1571        (-[WebPluginController dealloc]):
1572        (-[WebPluginController plugInsAreRunning]):
1573        (-[WebPluginController stopAllPlugins]):
1574        (-[WebPluginController stopPluginsForPageCache]):
1575        (-[WebPluginController restorePluginsFromCache]):
1576        (-[WebPluginController addPlugin:]):
1577        (-[WebPluginController destroyPlugin:]):
1578        (-[WebPluginController destroyAllPlugins]):
1579        (-[NSView isMediaPlugInProxyView]): Deleted.
1580        (-[NSView setIsMediaPlugInProxyView:]): Deleted.
1581        (-[WebPluginController mediaPlugInProxyViewCreated:]): Deleted.
1582        (+[WebPluginController pluginViewHidden:]): Deleted.
1583        (mediaProxyClient): Deleted.
1584        (-[WebPluginController _webPluginContainerSetMediaPlayerProxy:forElement:]): Deleted.
1585        (-[WebPluginController _webPluginContainerPostMediaPlayerNotification:forElement:]): Deleted.
1586        * WebCoreSupport/WebFrameLoaderClient.h:
1587        * WebCoreSupport/WebFrameLoaderClient.mm:
1588        (pluginView):
1589        * WebView/WebView.mm:
1590        (-[WebView _preferencesChanged:]):
1591        (-[WebView _videoProxyPluginForMIMEType:]): Deleted.
1592        * WebView/WebViewInternal.h:
1593
15942014-04-30  Anders Carlsson  <andersca@apple.com>
1595
1596        Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework
1597        https://bugs.webkit.org/show_bug.cgi?id=132399
1598        <rdar://problem/15920046>
1599
1600        Reviewed by Dan Bernstein.
1601
1602        * Carbon/CarbonUtils.h:
1603        * Carbon/HIViewAdapter.h:
1604        * Carbon/HIWebView.h:
1605        Import WebKitLegacy headers instead of WebKit headers.
1606
1607        * Configurations/WebKit.xcconfig:
1608        Move the definitions needed for building WebKitLegacy.framework to WebKitLegacy.xcconfig and
1609        add the relevant definitions needed for re-exporting WebKitLegacy.framework.
1610
1611        * Configurations/WebKitLegacy.xcconfig:
1612        Add definitions needed for building the "old" WebKit API as WebKitLegacy.framework.
1613
1614        * DOM/WebDOMOperations.h:
1615        * DOM/WebDOMOperations.mm:
1616        * DOM/WebDOMOperationsInternal.h:
1617        * DOM/WebDOMOperationsPrivate.h:
1618        * DefaultDelegates/WebDefaultContextMenuDelegate.h:
1619        * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1620        * DefaultDelegates/WebDefaultEditingDelegate.m:
1621        * History/WebBackForwardListInternal.h:
1622        * History/WebBackForwardListPrivate.h:
1623        * History/WebHistoryItemPrivate.h:
1624        * History/WebHistoryPrivate.h:
1625        * History/WebURLsWithTitles.m:
1626        Import WebKitLegacy headers instead of WebKit headers.
1627
1628        * MigrateHeaders.make:
1629        Update header paths now that all WebKitLegacy headers are private.
1630        Remove migration of WebKit2 headers, that is done by MigrateHeadersFromWebKitLegacy.make now.
1631        
1632        * Misc/WebCoreStatistics.h:
1633        * Misc/WebDownload.h:
1634        * Misc/WebDownload.mm:
1635        * Misc/WebDownloadInternal.h:
1636        * Misc/WebElementDictionary.mm:
1637        * Misc/WebIconDatabasePrivate.h:
1638        * Misc/WebKit.h:
1639        * Misc/WebKitErrors.m:
1640        * Misc/WebKitErrorsPrivate.h:
1641        * Misc/WebKitNSStringExtras.mm:
1642        * Misc/WebLocalizableStrings.mm:
1643        * Misc/WebNSDataExtras.m:
1644        * Misc/WebNSDictionaryExtras.m:
1645        * Misc/WebNSEventExtras.m:
1646        * Misc/WebNSFileManagerExtras.mm:
1647        * Misc/WebNSImageExtras.m:
1648        * Misc/WebNSPasteboardExtras.mm:
1649        * Misc/WebNSViewExtras.h:
1650        * Misc/WebNSViewExtras.m:
1651        * Panels/WebAuthenticationPanel.m:
1652        * Panels/WebPanelAuthenticationHandler.m:
1653        * Plugins/Hosted/HostedNetscapePluginStream.h:
1654        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1655        * Plugins/Hosted/WebKitPluginAgent.defs:
1656        * Plugins/Hosted/WebKitPluginAgentReply.defs:
1657        * Plugins/Hosted/WebKitPluginClient.defs:
1658        * Plugins/Hosted/WebKitPluginHost.defs:
1659        * Plugins/Hosted/WebKitPluginHostTypes.defs:
1660        * Plugins/WebBaseNetscapePluginView.mm:
1661        * Plugins/WebBasePluginPackage.h:
1662        * Plugins/WebBasePluginPackage.mm:
1663        * Plugins/WebNetscapeContainerCheckPrivate.h:
1664        * Plugins/WebNetscapePluginEventHandlerCocoa.h:
1665        * Plugins/WebNetscapePluginStream.h:
1666        * Plugins/WebNetscapePluginView.h:
1667        * Plugins/WebNetscapePluginView.mm:
1668        * Plugins/WebPlugin.h:
1669        * Plugins/WebPluginController.h:
1670        * Plugins/WebPluginDatabase.h:
1671        * Plugins/WebPluginPackage.h:
1672        * Plugins/WebPluginPackage.mm:
1673        * Plugins/WebPluginViewFactory.h:
1674        * Plugins/WebPluginViewFactoryPrivate.h:
1675        * Plugins/npapi.mm:
1676        * Storage/WebDatabaseManagerPrivate.h:
1677        * WebCoreSupport/WebContextMenuClient.mm:
1678        * WebCoreSupport/WebFrameLoaderClient.mm:
1679        * WebCoreSupport/WebFrameNetworkingContext.mm:
1680        * WebCoreSupport/WebGeolocationClient.mm:
1681        * WebCoreSupport/WebInspectorClient.mm:
1682        * WebCoreSupport/WebJavaScriptTextInputPanel.m:
1683        * WebCoreSupport/WebKeyGenerator.mm:
1684        * WebInspector/WebInspectorPrivate.h:
1685        * WebInspector/WebNodeHighlight.h:
1686        * WebInspector/WebNodeHighlightView.h:
1687        Import WebKitLegacy headers instead of WebKit headers.
1688        
1689        * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make: Added.
1690        New makefile that handles copying WebKitLegacy headers to the WebKit framework, rewriting WebKitLegacy
1691        imports to WebKit imports. (On iOS the WebKit headers just forward to the relevant WebKitLegacy headers).
1692        On OS X, this also handles copying WebKit2 headers to the WebKit framework, rewriting WebKit2 imports to WebKit imports
1693        and getting rid of C SPI imports.
1694        
1695        * WebKitLegacy/MigrateHeadersToLegacy.make: Removed.
1696        This is no longer needed.
1697        
1698        * WebKitLegacy/WebKit.h: Added.
1699        New umbrella header that imports the modern API if available, as well as the legacy API (using WebKit/WebKitLegacy.h).
1700
1701        * WebKitLegacy/WebKit.m:
1702        This is an empty file so we'll have something to link.
1703
1704        * WebKitLegacy/WebKitPrivate.h:
1705        New SPI header that imports the private headers of the modern API.
1706
1707        * WebView/WebDataSource.h:
1708        * WebView/WebDataSource.mm:
1709        * WebView/WebDataSourcePrivate.h:
1710        * WebView/WebDelegateImplementationCaching.h:
1711        * WebView/WebDocument.h:
1712        * WebView/WebDocumentInternal.h:
1713        * WebView/WebDocumentPrivate.h:
1714        * WebView/WebEditingDelegate.h:
1715        * WebView/WebEditingDelegatePrivate.h:
1716        * WebView/WebFrameLoadDelegate.h:
1717        * WebView/WebFrameLoadDelegatePrivate.h:
1718        * WebView/WebFramePrivate.h:
1719        * WebView/WebFrameView.h:
1720        * WebView/WebFrameViewInternal.h:
1721        * WebView/WebFrameViewPrivate.h:
1722        * WebView/WebHTMLRepresentation.h:
1723        * WebView/WebHTMLRepresentation.mm:
1724        * WebView/WebHTMLRepresentationPrivate.h:
1725        * WebView/WebHTMLView.h:
1726        * WebView/WebHTMLView.mm:
1727        * WebView/WebHTMLViewPrivate.h:
1728        * WebView/WebPDFView.h:
1729        * WebView/WebPolicyDelegatePrivate.h:
1730        * WebView/WebPreferencesPrivate.h:
1731        * WebView/WebResourcePrivate.h:
1732        * WebView/WebUIDelegate.h:
1733        * WebView/WebUIDelegatePrivate.h:
1734        * WebView/WebView.h:
1735        * WebView/WebView.mm:
1736        * WebView/WebViewPrivate.h:
1737        Import WebKitLegacy headers instead of WebKit headers.
1738
1739        * migrate-headers.sh:
1740        Derived sources are put in DerivedSources/WebKitLegacy now.
1741
17422014-04-30  David Hyatt  <hyatt@apple.com>
1743
1744        [New Multicolumn] Enable new multi-column mode
1745        https://bugs.webkit.org/show_bug.cgi?id=131825
1746
1747        Reviewed by Simon Fraser.
1748
1749        * WebView/WebPreferences.mm:
1750        (+[WebPreferences initialize]):
1751
17522014-04-30  Brian J. Burg  <burg@cs.washington.edu>
1753
1754        Clean up unnecessary methods in the BackForwardClient interface
1755        https://bugs.webkit.org/show_bug.cgi?id=131637
1756
1757        Reviewed by Andreas Kling.
1758
1759        BackForwardClient instances now have ownership lifetime semantics, so
1760        WebBackForwardList now explicitly deletes its inner BackForwardList.
1761
1762        Convert uses of WebCore::BackForwardList through backForward().client() to
1763        accept references instead of pointers.
1764
1765        Use BackForwardController methods rather than directly operating with the
1766        BackForwardClient where possible.
1767
1768        Remove page cache-related methods that are not used anywhere and that call
1769        BackForwardClient::page(), which is removed by this change.
1770
1771        * History/WebBackForwardList.mm:
1772        (-[WebBackForwardList initWithBackForwardList:]):
1773        (-[WebBackForwardList init]):
1774        (-[WebBackForwardList dealloc]):
1775        (-[WebBackForwardList finalize]):
1776        (-[WebBackForwardList setPageCacheSize]): Deleted.
1777        (-[WebBackForwardList pageCacheSize]): Deleted.
1778        (-[WebBackForwardList itemAtIndex:]): Deleted.
1779        * History/WebBackForwardListInternal.h:
1780        * WebCoreSupport/WebFrameLoaderClient.mm:
1781        (WebFrameLoaderClient::canCachePage):
1782        * WebView/WebFrameView.mm:
1783        (-[WebFrameView keyDown:keyDown:]):
1784        * WebView/WebView.mm:
1785        (-[WebView _loadBackForwardListFromOtherView:]):
1786        (-[WebView initWithCoder:]):
1787        (-[WebView encodeWithCoder:]):
1788        (-[WebView backForwardList]):
1789        (-[WebView setMaintainsBackForwardList:]):
1790
17912014-04-29  Sam Weinig  <sam@webkit.org>
1792
1793        [iOS] -[WebHTMLView selectionImageForcingBlackText:] returns blank image on iOS
1794        https://bugs.webkit.org/show_bug.cgi?id=132359
1795
1796        Reviewed by Darin Adler.
1797
1798        * WebView/WebHTMLView.mm:
1799        (imageFromRect):
1800        (selectionImage):
1801        (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
1802        Bring back the old FrameSnapshottingMac code for drawing the selection image as drag code for this
1803        is still unimplemented on iOS.
1804
1805        * WebView/WebView.mm:
1806        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1807        Set the page scale for "simple HTML documents" (this is already done for the all other documents), 
1808        to ensure that the snapshot is the correct size.
1809
18102014-04-30  Manuel Rego Casasnovas  <rego@igalia.com>
1811
1812        [CSS Grid Layout] Enable runtime feature by default
1813        https://bugs.webkit.org/show_bug.cgi?id=132189
1814
1815        Reviewed by Benjamin Poulain.
1816
1817        * WebView/WebPreferences.mm:
1818        (+[WebPreferences initialize]): Remove unneeded changes that
1819        enable/disable the runtime feature depending on the compilation flag.
1820        And set it to true by default.
1821
18222014-04-29  Filip Pizlo  <fpizlo@apple.com>
1823
1824        Use LLVM as a backend for the fourth-tier DFG JIT (a.k.a. the FTL JIT)
1825        https://bugs.webkit.org/show_bug.cgi?id=112840
1826
1827        Rubber stamped by Geoffrey Garen.
1828
1829        * Configurations/FeatureDefines.xcconfig:
1830
18312014-04-29  Brady Eidson  <beidson@apple.com>
1832
1833        Change Image Controls replacement to use selection and paste
1834        <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
1835
1836        Reviewed by Tim Horton.
1837
1838        * Misc/WebSharingServicePickerController.mm:
1839        (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
1840          replacement data to a special pasteboard, then replace the current selection from
1841          that pasteboard.
1842
18432014-04-27  Sam Weinig  <sam@webkit.org>
1844
1845        [iOS WebKit2] Add support for text autosizing
1846        <rdar://problem/16545245>
1847        https://bugs.webkit.org/show_bug.cgi?id=132237
1848
1849        Reviewed by Tim Horton.
1850
1851        * WebView/WebFrame.mm:
1852        (-[WebFrame _setTextAutosizingWidth:]):
1853        Forward setting of the text autosizing width to the Page.
1854
18552014-04-25  Dean Jackson  <dino@apple.com>
1856
1857        Allow a platform-specific size enumeration to be passed into popup-menu display
1858        https://bugs.webkit.org/show_bug.cgi?id=132195
1859
1860        Reviewed by Brent Fulgham. With some in-person review comments from Sam Weinig.
1861
1862        Platforms like OS X use a set of predefined sizes for built-in controls
1863        used for <select>: normal, small and mini. Expose that information to
1864        the PopupMenuClient via the PopupMenuStyle, allowing it to be passed
1865        into the platform code in WebKitSystemInterface.
1866
1867        * WebCoreSupport/PopupMenuMac.mm:
1868        (PopupMenuMac::show): Convert the WebCore menu size type into the
1869        WebCoreSystemInterface type.
1870
18712014-04-24  Commit Queue  <commit-queue@webkit.org>
1872
1873        Unreviewed, rolling out r167700.
1874        https://bugs.webkit.org/show_bug.cgi?id=132142
1875
1876        Incorrectly reverted the change in r167547 for
1877        webkit.org/b/131898 (Requested by rniwa on #webkit).
1878
1879        Reverted changeset:
1880
1881        "Cursor doesn't change back to pointer when leaving the Safari
1882        window"
1883        https://bugs.webkit.org/show_bug.cgi?id=132038
1884        http://trac.webkit.org/changeset/167700
1885
18862014-04-24  Brady Eidson  <beidson@apple.com>
1887
1888        Rename "IMAGE_CONTROLS" feature to "SERVICE_CONTROLS"
1889        https://bugs.webkit.org/show_bug.cgi?id=132155
1890
1891        Reviewed by Tim Horton.
1892
1893        * Configurations/FeatureDefines.xcconfig:
1894        * Misc/WebSharingServicePickerController.h:
1895        * Misc/WebSharingServicePickerController.mm:
1896        * WebCoreSupport/WebContextMenuClient.h:
1897        * WebCoreSupport/WebContextMenuClient.mm:
1898        (WebContextMenuClient::contextMenuForEvent):
1899        * WebView/WebPreferences.mm:
1900        (+[WebPreferences initialize]):
1901        * WebView/WebView.mm:
1902        (-[WebView _preferencesChanged:]):
1903
19042014-04-24  Ryosuke Niwa  <rniwa@webkit.org>
1905
1906        Text caret disappears in Mail after returning from another application
1907        https://bugs.webkit.org/show_bug.cgi?id=132111
1908
1909        Reviewed by Darin Adler.
1910
1911        The bug was caused by our SPI _windowChangedKeyState not getting called upon deminiaturization.
1912
1913        Fixed the bug by using the standard NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification
1914        notifications as done in WebKit2 since they DO get called upon deminiaturization.
1915
1916        * WebView/WebView.mm:
1917        (-[WebView addWindowObserversForWindow:]):
1918        (-[WebView removeWindowObservers]):
1919        (-[WebView _windowKeyStateChanged:]):
1920        (-[WebView _windowChangedKeyState]): Deleted.
1921
19222014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
1923
1924        FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
1925        https://bugs.webkit.org/show_bug.cgi?id=132110
1926
1927        Reviewed by Tim Horton.
1928
1929        Updates callers to use '.' instead of '->'.
1930
1931        No new tests are necessary because there should be no behavior change.
1932
1933        * Misc/WebCoreStatistics.mm:
1934        (+[WebCoreStatistics cachedFontDataCount]):
1935        (+[WebCoreStatistics cachedFontDataInactiveCount]):
1936        (+[WebCoreStatistics purgeInactiveFontData]):
1937        * WebView/WebView.mm:
1938        (+[WebView purgeInactiveFontData]):
1939
19402014-04-24  Eric Carlson  <eric.carlson@apple.com>
1941
1942        [iOS] Manage AudioSession category according to media type
1943        https://bugs.webkit.org/show_bug.cgi?id=132096
1944
1945        Reviewed by Jer Noble.
1946
1947        * WebView/WebView.mm:
1948        (-[WebView _commonInitializationWithFrameName:groupName:]): Tell 
1949            WebCore to manage the AudioSession when running in MobileSafari.
1950
19512014-04-23  Andreas Kling  <akling@apple.com>
1952
1953        Remove Apple Dictionary workaround in WebFrameLoaderClient.
1954        <https://webkit.org/b/132095>
1955
1956        Kill a hack to work around a WK1 client bug that got fixed years ago.
1957        See <rdar://problem/6471058> for backstory.
1958
1959        Reviewed by Darin Adler.
1960
1961        * WebCoreSupport/WebFrameLoaderClient.mm:
1962        (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
1963        (WebFrameLoaderClient::dispatchWillSendRequest):
1964        (applyAppleDictionaryApplicationQuirkNonInlinePart): Deleted.
1965        (applyAppleDictionaryApplicationQuirk): Deleted.
1966
19672014-04-23  Anders Carlsson  <andersca@apple.com>
1968
1969        Don't migrate the WKView.h header from WebCore to WebKit
1970        https://bugs.webkit.org/show_bug.cgi?id=132086
1971
1972        Reviewed by Dan Bernstein.
1973
1974        * MigrateHeaders.make:
1975        Remove WKView.h from the list of headers to migrate.
1976
1977        * WebView/WebView.mm:
1978        Import WKView.h.
1979
19802014-04-22  Ryosuke Niwa  <rniwa@webkit.org>
1981
1982        Cursor doesn't change back to pointer when leaving the Safari window
1983        https://bugs.webkit.org/show_bug.cgi?id=132038
1984
1985        Reviewed by Alexey Proskuryakov.
1986
1987        Since the cursor type is now updated asynchronously after r147739,
1988        [window windowNumber] != [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0]
1989        evalutes to false depending on how fast cursor is moving.
1990
1991        Instead, check whether the NSWindow of the WebView is the key window or not since
1992        key window appears to control the cursor style in Cocoa as far as I've tested:
1993        https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
1994
1995        * WebCoreSupport/WebChromeClient.mm:
1996        (WebChromeClient::setCursor):
1997
19982014-04-22  Commit Queue  <commit-queue@webkit.org>
1999
2000        Unreviewed, rolling out r167674.
2001        https://bugs.webkit.org/show_bug.cgi?id=132025
2002
2003        Going a different way with this (Requested by bradee-oh on
2004        #webkit).
2005
2006        Reverted changeset:
2007
2008        "Change Image Controls replacement to use selection and paste"
2009        https://bugs.webkit.org/show_bug.cgi?id=131992
2010        http://trac.webkit.org/changeset/167674
2011
20122014-04-22  Brady Eidson  <beidson@apple.com>
2013
2014        Change Image Controls replacement to use selection and paste
2015        <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
2016
2017        Reviewed by Tim Horton.
2018
2019        * Misc/WebSharingServicePickerController.mm:
2020        (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
2021          replacement data to a special pasteboard, then replace the current selection from
2022          that pasteboard.
2023
20242014-04-21  Eric Carlson  <eric.carlson@apple.com>
2025
2026        [Mac] implement WebKitDataCue
2027        https://bugs.webkit.org/show_bug.cgi?id=131799
2028
2029        Reviewed by Dean Jackson.
2030
2031        * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
2032
20332014-04-21  Joseph Pecoraro  <pecoraro@apple.com>
2034
2035        Remove unused WebKitSystemInterface functions
2036        https://bugs.webkit.org/show_bug.cgi?id=131938
2037
2038        Reviewed by Alexey Proskuryakov.
2039
2040        * WebCoreSupport/WebSystemInterface.mm:
2041        (InitWebCoreSystemInterface):
2042
20432014-04-21  Zan Dobersek  <zdobersek@igalia.com>
2044
2045        Move cross-port Source/WebCore/page/ code to std::unique_ptr
2046        https://bugs.webkit.org/show_bug.cgi?id=130534
2047
2048        Reviewed by Darin Adler.
2049
2050        * WebView/WebHTMLRepresentation.mm:
2051        (searchForLabelsBeforeElement): Pass a RegExp reference to Frame::searchForLabelsAboveCell().
2052
20532014-04-19  Darin Adler  <darin@apple.com>
2054
2055        [Mac] WebView adjusts the cursor even when another window is in front
2056        https://bugs.webkit.org/show_bug.cgi?id=131898
2057        rdar://problem/14619911
2058
2059        Reviewed by Dan Bernstein.
2060
2061        * WebCoreSupport/WebChromeClient.mm:
2062        (WebChromeClient::setCursor): Added a check that the window is under the cursor
2063        and do nothing if it's not.
2064
20652014-04-18  Commit Queue  <commit-queue@webkit.org>
2066
2067        Unreviewed, rolling out r167527.
2068        https://bugs.webkit.org/show_bug.cgi?id=131883
2069
2070        Broke 32-bit build (Requested by ap on #webkit).
2071
2072        Reverted changeset:
2073
2074        "[Mac] implement WebKitDataCue"
2075        https://bugs.webkit.org/show_bug.cgi?id=131799
2076        http://trac.webkit.org/changeset/167527
2077
20782014-04-18  Eric Carlson  <eric.carlson@apple.com>
2079
2080        [Mac] implement WebKitDataCue
2081        https://bugs.webkit.org/show_bug.cgi?id=131799
2082
2083        Reviewed by Dean Jackson.
2084
2085        * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
2086
20872014-04-17  Daniel Bates  <dabates@apple.com>
2088
2089        [iOS] Hook up screen.{availHeight, availWidth, height, width}
2090        https://bugs.webkit.org/show_bug.cgi?id=131821
2091        <rdar://problem/16413795>
2092
2093        Reviewed by Benjamin Poulain and Tim Horton.
2094
2095        Add declaration for WKGetViewportAvailableScreenSize() to return the available screen size.
2096
2097        Additionally substitute "ScreenSize" for "ViewportScreenSize" to make the code more understandable.
2098
2099        * WebCoreSupport/WebSystemInterface.mm:
2100        (InitWebCoreSystemInterface):
2101
21022014-04-17  Darin Adler  <darin@apple.com>
2103
2104        Add separate flag for IndexedDatabase in workers since the current implementation is not threadsafe
2105        https://bugs.webkit.org/show_bug.cgi?id=131785
2106        rdar://problem/16003108
2107
2108        Reviewed by Brady Eidson.
2109        
2110        * Configurations/FeatureDefines.xcconfig: Added INDEXED_DATABASE_IN_WORKERS.
2111
21122014-04-16  Tim Horton  <timothy_horton@apple.com>
2113
2114        Images dragged from WebKit1 on 2x displays are too big
2115        https://bugs.webkit.org/show_bug.cgi?id=131775
2116        <rdar://problem/15933525>
2117
2118        Reviewed by Simon Fraser.
2119
2120        * WebCoreSupport/WebDragClient.mm:
2121        (WebDragClient::startDrag):
2122        Scale the drag image's logical size down by the device scale factor
2123        in WebKit1 just like we do in WebKit2.
2124
21252014-04-13  Andy Estes  <aestes@apple.com>
2126
2127        [QuickLook] Move file system-related code into WebKit
2128        https://bugs.webkit.org/show_bug.cgi?id=131597
2129
2130        Reviewed by Dan Bernstein.
2131
2132        Moved file system and WebKit1-only code from QuickLookHandle into a new
2133        QuickLookHandleClient subclass.
2134
2135        * WebCoreSupport/WebFrameLoaderClient.h:
2136        * WebCoreSupport/WebFrameLoaderClient.mm:
2137
21382014-04-09  Alexey Proskuryakov  <ap@apple.com>
2139
2140        Eliminate DragSession structure
2141        https://bugs.webkit.org/show_bug.cgi?id=131465
2142
2143        Reviewed by Benjamin Poulain.
2144
2145        * WebView/WebView.mm:
2146        (-[WebView draggingEntered:]):
2147        (-[WebView draggingUpdated:]):
2148
21492014-04-09  Alexey Proskuryakov  <ap@apple.com>
2150
2151        Rename some dragging functions
2152        https://bugs.webkit.org/show_bug.cgi?id=131460
2153
2154        Reviewed by Tim Horton.
2155
2156        Renamed performDrag to performDragOperation.
2157
2158        * WebView/WebView.mm: (-[WebView performDragOperation:]):
2159
21602014-04-08  Jon Lee  <jonlee@apple.com>
2161
2162        Turn MSE on by default
2163        https://bugs.webkit.org/show_bug.cgi?id=131313
2164        <rdar://problem/16525223>
2165
2166        Reviewed by Jer Noble.
2167
2168        * Configurations/FeatureDefines.xcconfig:
2169        * WebView/WebPreferences.mm:
2170        (+[WebPreferences initialize]): Set default to true.
2171
21722014-04-08  Alexey Proskuryakov  <ap@apple.com>
2173
2174        Rename Clipboard to DataTransfer
2175        https://bugs.webkit.org/show_bug.cgi?id=131371
2176
2177        Reviewed by Anders Carlsson.
2178
2179        * WebCoreSupport/WebDragClient.h:
2180        * WebCoreSupport/WebDragClient.mm:
2181        (WebDragClient::willPerformDragSourceAction):
2182        (WebDragClient::startDrag):
2183        * WebView/WebPDFView.mm:
2184
21852014-04-08  Dan Bernstein  <mitz@apple.com>
2186
2187        WebKit part of [Cocoa] Add WKFormDelegate
2188        https://bugs.webkit.org/show_bug.cgi?id=131343
2189
2190        Reviewed by Anders Carlsson.
2191
2192        * MigrateHeaders.make: Added new WebKit2 headers to WEBKIT2_HEADERS.
2193
21942014-04-08  Daniel Bates  <dabates@apple.com>
2195
2196        Fallback to default storage session when there isn't a valid session ID
2197        https://bugs.webkit.org/show_bug.cgi?id=131326
2198        <rdar://problem/16231679>
2199
2200        Reviewed by Alexey Proskuryakov.
2201
2202        Fixes and issue where we may use the wrong storage session after disabling
2203        a private browsing session.
2204
2205        Currently WebKit1 and WebKit2 without NetworkProcess assume that there
2206        is always a non-null private browsing storage session so long as the page
2207        has a non-default session ID. Instead we should only use the private browsing
2208        storage session when it's non-null and the page has a non-default session ID;
2209        otherwise, we should use the default storage session. This change will make
2210        the behavior in WebKit1 and WebKit2 without NetworkProcess consistent with
2211        the behavior in WebKit2 with NetworkProcess.
2212
2213        * WebCoreSupport/WebFrameNetworkingContext.mm:
2214        (WebFrameNetworkingContext::storageSession):
2215
22162014-04-06  Sam Weinig  <sam@webkit.org>
2217
2218        Document user content related APIs
2219
2220        Reviewed by Anders Carlsson.
2221
2222        * MigrateHeaders.make:
2223
22242014-04-06  Darin Adler  <darin@apple.com>
2225
2226        Refactor post-attach and HTMLObjectElement-related code
2227        https://bugs.webkit.org/show_bug.cgi?id=131282
2228
2229        Reviewed by Antti Koivisto.
2230
2231        * WebCoreSupport/WebFrameLoaderClient.mm: Call toHTMLPlugInImageElement instead of
2232        doing a static_cast.
2233
22342014-04-04  Brian J. Burg  <burg@cs.washington.edu>
2235
2236        Enable WEB_REPLAY for PLATFORM(MAC)
2237        https://bugs.webkit.org/show_bug.cgi?id=130700
2238
2239        Reviewed by Timothy Hatcher.
2240
2241        * Configurations/FeatureDefines.xcconfig:
2242
22432014-04-03  Sam Weinig  <sam@webkit.org>
2244
2245        [WebKit2] Promote user script SPI to API
2246        https://bugs.webkit.org/show_bug.cgi?id=131181
2247
2248        Reviewed by Anders Carlsson.
2249
2250        * MigrateHeaders.make:
2251
22522014-04-02  Benjamin Poulain  <bpoulain@apple.com>
2253
2254        [iOS] Remove the legacy string drawing code
2255        https://bugs.webkit.org/show_bug.cgi?id=131088
2256
2257        Reviewed by Sam Weinig.
2258
2259        * Configurations/WebKit.xcconfig:
2260
22612014-04-02  Mark Rowe  <mrowe@apple.com>
2262
2263        <https://webkit.org/b/131135> Introduce LockHistory and LockBackForwardList enums to use in place of bools.
2264
2265        These arguments are often passed using literals at the call site, where the use of bools severely hinders
2266        the readability of the code.
2267
2268        Reviewed by Andreas Kling.
2269
2270        * WebView/WebPDFView.mm:
2271        (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2272
22732014-04-02  Stephanie Lewis  <slewis@apple.com>
2274
2275        Roll out http://trac.webkit.org/changeset/166144
2276        <rdar://problem/16481284> PLT stops loading on news.google.com
2277        
2278        Unreviewed rollout.
2279
2280        Rollout 166144 since it prevents the PLT from completing.
2281
2282        * WebCoreSupport/WebFrameLoaderClient.mm:
2283
22842014-04-02  Daniel Bates  <dabates@apple.com>
2285
2286        Remove Settings::maximumDecodedImageSize()
2287        https://bugs.webkit.org/show_bug.cgi?id=131057
2288        <rdar://problem/15626368>
2289
2290        Reviewed by Darin Adler. 
2291
2292        Remove preferences key WebKitMaximumImageSize.
2293
2294        * WebView/WebPreferenceKeysPrivate.h:
2295        * WebView/WebPreferences.mm:
2296        (+[WebPreferences initialize]):
2297        (-[WebPreferences _maximumImageSize:]): Deleted.
2298        * WebView/WebPreferencesPrivate.h:
2299        * WebView/WebView.mm:
2300        (-[WebView _preferencesChanged:]):
2301
23022014-04-02  Martin Hock  <mhock@apple.com>
2303
2304        Unify private browsing with sessions.
2305        https://bugs.webkit.org/show_bug.cgi?id=130099
2306
2307        Reviewed by Alexey Proskuryakov.
2308
2309        * WebCoreSupport/WebFrameLoaderClient.mm: Change WebCore::Settings::privateBrowsingEnabled() to Page::sessionID().isEphemeral().
2310        (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
2311        * WebCoreSupport/WebFrameNetworkingContext.mm: Ditto.
2312        (WebFrameNetworkingContext::storageSession):
2313        * WebView/WebView.mm: Change WebCore::Settings::setPrivateBrowsingEnabled() to Page::enableLegacyPrivateBrowsing().
2314        (-[WebView _preferencesChanged:]):
2315
23162014-04-01  Anders Carlsson  <andersca@apple.com>
2317
2318        Migrate more headers
2319        https://bugs.webkit.org/show_bug.cgi?id=131068
2320
2321        Reviewed by Tim Horton.
2322
2323        * MigrateHeaders.make:
2324
23252014-04-01  Manuel Rego Casasnovas  <rego@igalia.com>
2326
2327        [CSS Grid Layout] Enable runtime feature if feature flag is enabled
2328        https://bugs.webkit.org/show_bug.cgi?id=130013
2329
2330        Reviewed by Simon Fraser.
2331
2332        Enable CSS Grid Layout runtime feature when ENABLE_CSS_GRID_LAYOUT flag is true.
2333
2334        * WebView/WebPreferences.mm:
2335        (+[WebPreferences initialize]):
2336
23372014-03-31  Simon Fraser  <simon.fraser@apple.com>
2338
2339        Enable WEB_TIMING on Mac and iOS
2340        https://bugs.webkit.org/show_bug.cgi?id=128064
2341
2342        Reviewed by Sam Weinig, Brent Fulgham.
2343
2344        Enable WEB_TIMING.
2345
2346        * Configurations/FeatureDefines.xcconfig:
2347
23482014-03-31  Dean Jackson  <dino@apple.com>
2349
2350        Remove WEB_ANIMATIONS
2351        https://bugs.webkit.org/show_bug.cgi?id=130989
2352
2353        Reviewed by Simon Fraser.
2354
2355        Remove this feature flag until we plan to implement.
2356
2357        * Configurations/FeatureDefines.xcconfig:
2358
23592014-03-31  Antti Koivisto  <antti@apple.com>
2360
2361        Rename TileCache to LegacyTileCache
2362        https://bugs.webkit.org/show_bug.cgi?id=130986
2363
2364        Reviewed by Simon Fraser.
2365
2366        * WebView/WebView.mm:
2367        (+[WebView drainLayerPool]):
2368        (+[WebView _setTileCacheLayerPoolCapacity:]):
2369
23702014-03-28  Darin Adler  <darin@apple.com>
2371
2372        Fix recently-introduced off-by-one error in centerTruncateToBuffer
2373        https://bugs.webkit.org/show_bug.cgi?id=130889
2374
2375        Reviewed by Alexey Proskuryakov.
2376
2377        * Misc/WebStringTruncator.mm:
2378        (defaultMenuFont): Changed to use NeverDestroyed since I had to touch this file anyway.
2379        (fontFromNSFont): Ditto. Also improved variable names a bit.
2380        (+[WebStringTruncator initialize]): Added threading initialization, needed for main
2381        thread assertions in string truncator code.
2382
23832014-03-27  Commit Queue  <commit-queue@webkit.org>
2384
2385        Unreviewed, rolling out r166360.
2386        https://bugs.webkit.org/show_bug.cgi?id=130869
2387
2388        Seems to have broken PLT (Requested by ap on #webkit).
2389
2390        Reverted changeset:
2391
2392        "Connection::dispatchOneMessage() can be re-entered while
2393        handling Cmd-key menu"
2394        https://bugs.webkit.org/show_bug.cgi?id=130767
2395        http://trac.webkit.org/changeset/166360
2396
23972014-03-27  Alexey Proskuryakov  <ap@apple.com>
2398
2399        Connection::dispatchOneMessage() can be re-entered while handling Cmd-key menu
2400        equivalents, ASSERT(!_data->_keyDownEventBeingResent)
2401        https://bugs.webkit.org/show_bug.cgi?id=130767
2402        <rdar://problem/16307487>
2403
2404        Reviewed by Darin Adler.
2405
2406        Switched to a WebCore wrapper for RunLoop::initializeMainRunLoop that adds
2407        NSModalPanelRunLoopMode to RunLoop event source and timer modes.
2408
2409        * Carbon/CarbonWindowAdapter.mm: (+[CarbonWindowAdapter initialize]):
2410        * History/WebBackForwardList.mm: (+[WebBackForwardList initialize]):
2411        * History/WebHistoryItem.mm: (+[WebHistoryItem initialize]):
2412        * Misc/WebCache.mm: (+[WebCache initialize]):
2413        * Misc/WebElementDictionary.mm: (+[WebElementDictionary initialize]):
2414        * Misc/WebIconDatabase.mm: (+[WebIconDatabase initialize]):
2415        * Plugins/Hosted/WebHostedNetscapePluginView.mm: (+[WebHostedNetscapePluginView initialize]):
2416        * Plugins/WebBaseNetscapePluginView.mm:
2417        * Plugins/WebBasePluginPackage.mm:
2418        * Plugins/WebNetscapePluginView.mm: (+[WebNetscapePluginView initialize]):
2419        * WebCoreSupport/WebEditorClient.mm: (+[WebUndoStep initialize]):
2420        * WebCoreSupport/WebFrameLoaderClient.mm:
2421        * WebView/WebArchive.mm: (+[WebArchivePrivate initialize]):
2422        * WebView/WebDataSource.mm: (+[WebDataSource initialize]):
2423        * WebView/WebHTMLView.mm:
2424        (+[WebHTMLViewPrivate initialize]):
2425        (+[WebHTMLView initialize]):
2426        * WebView/WebPreferences.mm: (+[WebPreferences initialize]):
2427        * WebView/WebResource.mm: (+[WebResourcePrivate initialize]):
2428        * WebView/WebTextIterator.mm: (+[WebTextIteratorPrivate initialize]):
2429        * WebView/WebView.mm: (+[WebView initialize]):
2430        * WebView/WebViewData.mm: (+[WebViewPrivate initialize]):
2431
24322014-03-26  Timothy Hatcher  <timothy@apple.com>
2433
2434        Propagate the hiddenFromInspector flag on ResourceRequest in
2435        places when a new request a made or passed between processes.
2436
2437        https://bugs.webkit.org/show_bug.cgi?id=130741
2438
2439        Reviewed by Joseph Pecoraro.
2440
2441        * WebCoreSupport/WebFrameLoaderClient.mm:
2442        (WebFrameLoaderClient::dispatchWillSendRequest): Copy hiddenFromInspector to
2443        the new request.
2444
24452014-03-26  Zoltan Horvath  <zoltan@webkit.org>
2446
2447        [CSS Shapes] Remove shape-inside support
2448        https://bugs.webkit.org/show_bug.cgi?id=130698
2449
2450        Reviewed by David Hyatt.
2451
2452        * Configurations/FeatureDefines.xcconfig:
2453
24542014-03-25  Joseph Pecoraro  <pecoraro@apple.com>
2455
2456        [iOS] Inspector View Indication Support
2457        https://bugs.webkit.org/show_bug.cgi?id=130709
2458
2459        Reviewed by Simon Fraser.
2460
2461        * WebCoreSupport/WebInspectorClient.h:
2462        * WebCoreSupport/WebInspectorClient.mm:
2463        (WebInspectorClient::didSetSearchingForNode): Deleted.
2464        (WebInspectorClient::releaseFrontend): Deleted.
2465        * WebView/WebView.mm:
2466        (-[WebView setShowingInspectorIndication:]):
2467        * WebView/WebViewPrivate.h:
2468        Renamed methods.
2469
24702014-03-24  Brent Fulgham  <bfulgham@apple.com>
2471
2472        Activate WebVTT Tests Once Merging is Complete
2473        https://bugs.webkit.org/show_bug.cgi?id=130420
2474
2475        Reviewed by Eric Carlson.
2476
2477        * Configurations/FeatureDefines.xcconfig: Turn on ENABLE(WEBVTT_REGIONS)
2478
24792014-03-24  Andy Estes  <aestes@apple.com>
2480
2481        [iOS] Download support by CFURLDownloadRef under USE(CFNETWORK).
2482        https://bugs.webkit.org/show_bug.cgi?id=129322
2483
2484        Reviewed by Anders Carlsson.
2485
2486        * WebCoreSupport/WebFrameLoaderClient.mm:
2487        (WebFrameLoaderClient::convertMainResourceLoadToDownload): Use the
2488        RetainPtr returned by releaseConnectionForDownload() rather than
2489        manually releasing.
2490
24912014-03-24  Jon Lee  <jonlee@apple.com>
2492
2493        Build fixes.
2494
2495        Unreviewed.
2496
2497        * WebInspector/WebNodeHighlightView.mm: Missing include to GeometryUtilities.
2498
24992014-03-23  Sam Weinig  <sam@webkit.org>
2500
2501        Remove some unnecessary .get()s that Darin noticed.
2502
2503        * WebView/WebHTMLRepresentation.mm:
2504        (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
2505        * WebView/WebHTMLView.mm:
2506        (-[WebHTMLView attributedString]):
2507
25082014-03-23  Sam Weinig  <sam@webkit.org>
2509
2510        Simplify the HTMLConverter interface (Part 2)
2511        https://bugs.webkit.org/show_bug.cgi?id=130654
2512
2513        Reviewed by Darin Adler.
2514
2515        * WebView/WebHTMLRepresentation.mm:
2516        (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
2517        * WebView/WebHTMLView.mm:
2518        (-[WebHTMLView attributedSubstringFromRange:]):
2519        (-[WebHTMLView attributedString]):
2520        (-[WebHTMLView selectedAttributedString]):
2521
25222014-03-23  Darin Adler  <darin@apple.com>
2523
2524        Remove code in HTMLObjectElement attribute parsing that forces style resolution and layout
2525        https://bugs.webkit.org/show_bug.cgi?id=130653
2526
2527        Reviewed by Antti Koivisto.
2528
2529        * WebCoreSupport/WebFrameLoaderClient.mm: Call toHTMLPlugInImageElement instead of
2530        doing a static_cast.
2531
25322014-03-21  Simon Fraser  <simon.fraser@apple.com>
2533
2534        Don't flush compositing layers within FrameView::willPaintContents()
2535        https://bugs.webkit.org/show_bug.cgi?id=130627
2536
2537        Reviewed by Sam Weinig.
2538        
2539        Make _flushCompositingChanges private so DRT can call it;
2540        moved it into the Private category.
2541
2542        * WebView/WebView.mm:
2543        (-[WebView _flushCompositingChanges]):
2544        * WebView/WebViewPrivate.h:
2545
25462014-03-21  Simon Fraser  <simon.fraser@apple.com>
2547
2548        Remove duplicate line added during merging
2549        https://bugs.webkit.org/show_bug.cgi?id=130623
2550
2551        Reviewed by Beth Dakin.
2552        
2553        Remove a duplicate call to -_viewWillDrawInternal which
2554        was added during merges.
2555
2556        * WebView/WebView.mm:
2557        (LayerFlushController::flushLayers):
2558
25592014-03-21  Darin Adler  <darin@apple.com>
2560
2561        Improve idiom used for string building in a few places
2562        https://bugs.webkit.org/show_bug.cgi?id=130561
2563
2564        Reviewed by Andreas Kling.
2565
2566        * WebView/WebHTMLRepresentation.mm:
2567        (regExpForLabels): Use StringBuilder.
2568
25692014-03-21  Darin Adler  <darin@apple.com>
2570
2571        Add a combined decodeAndFlush to TextResourceDecoder
2572        https://bugs.webkit.org/show_bug.cgi?id=130560
2573
2574        Reviewed by Andreas Kling.
2575
2576        * WebView/WebView.mm:
2577        (+[WebView _decodeData:]): Use decodeAndFlush.
2578
25792014-03-20  Anders Carlsson  <andersca@apple.com>
2580
2581        Fix build.
2582
2583        * MigrateHeaders.make:
2584
25852014-03-20  Pratik Solanki  <psolanki@apple.com>
2586
2587        [iOS] Get code to compile on older iOS versions
2588        https://bugs.webkit.org/show_bug.cgi?id=130142
2589        <rdar://problem/16302908>
2590
2591        Reviewed by Darin Adler.
2592
2593        * History/WebHistory.mm:
2594        (getDayBoundaries):
2595        * Plugins/WebPluginController.h:
2596        * Plugins/WebPluginController.mm:
2597        (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
2598        * WebCoreSupport/WebFrameLoaderClient.mm:
2599        (pluginView):
2600        * WebView/WebPreferences.mm:
2601        (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]):
2602        * WebView/WebPreferencesPrivate.h:
2603
26042014-03-20  Lucas Forschler  <lforschler@apple.com>
2605
2606    Rollout r165944.  Build break.
2607    
26082014-03-19  Pratik Solanki  <psolanki@apple.com>
2609
2610        [iOS] Get code to compile on older iOS versions
2611        https://bugs.webkit.org/show_bug.cgi?id=130142
2612        <rdar://problem/16302908>
2613
2614        Reviewed by Darin Adler.
2615
2616        * History/WebHistory.mm:
2617        (getDayBoundaries):
2618        * Plugins/WebPluginController.h:
2619        * Plugins/WebPluginController.mm:
2620        (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
2621        * WebCoreSupport/WebFrameLoaderClient.mm:
2622        (pluginView):
2623        * WebView/WebPreferences.mm:
2624        (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]):
2625        * WebView/WebPreferencesPrivate.h:
2626
26272014-03-19  Jer Noble  <jer.noble@apple.com>
2628
2629        [Mac][EME] Query whether decoder support exists before creating a new MediaKeys object.
2630        https://bugs.webkit.org/show_bug.cgi?id=130459
2631
2632        Reviewed by Eric Carlson.
2633
2634        * WebCoreSupport/WebSystemInterface.mm:
2635        (InitWebCoreSystemInterface): Initialize the new WCSI method.
2636
26372014-03-19  Brady Eidson  <beidson@apple.com>
2638
2639        Filter out editable services from image menu for non-contenteditable images
2640        <rdar://problem/16319645> and https://bugs.webkit.org/show_bug.cgi?id=130437
2641
2642        Reviewed by Tim Horton.
2643
2644        * Misc/WebSharingServicePickerController.h:
2645        * Misc/WebSharingServicePickerController.mm:
2646        (-[WebSharingServicePickerController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
2647          Filter out editing services based on the includeEditorServices flag.
2648        * WebCoreSupport/WebContextMenuClient.mm:
2649        (WebContextMenuClient::contextMenuForEvent):
2650
26512014-03-19  Jer Noble  <jer.noble@apple.com>
2652
2653        [iOS] Disable the video plugin proxy by default on WK1.
2654        https://bugs.webkit.org/show_bug.cgi?id=130460
2655
2656        Reviewed by Eric Carlson.
2657
2658        Update the defaults to universally enable the AVFoundationEnabled preference, disable the
2659        VideoPluginProxyEnabled preference, and on iOS only enable the AVKitEnabled preference.
2660
2661        * WebView/WebPreferences.mm:
2662        (+[WebPreferences initialize]):
2663
26642014-03-18  Samuel White  <samuel_white@apple.com>
2665
2666        AX: Not able to use arrow keys to read text with VoiceOver before selection is set someplace (anyplace).
2667        https://bugs.webkit.org/show_bug.cgi?id=130250
2668
2669        Reviewed by Chris Fleizach.
2670
2671        Added ability to toggle enhanced accessibility on and off to support tests that require it.
2672
2673        * WebView/WebFrame.mm:
2674        (-[WebFrame enhancedAccessibilityEnabled]):
2675        (-[WebFrame setEnhancedAccessibility:]):
2676        * WebView/WebFramePrivate.h:
2677
26782014-03-17  Filip Pizlo  <fpizlo@apple.com>
2679
2680        More FTL enabling.
2681
2682        Rubber stamped by Dan Bernstein.
2683
2684        * Configurations/FeatureDefines.xcconfig:
2685
26862014-03-17  Andy Estes  <aestes@apple.com>
2687
2688        Remove staging code added for <http://webkit.org/b/129358> [iOS] Support network state notification using CPNetworkObserver
2689
2690        Reviewed by Enrica Casucci.
2691
2692        * WebView/WebView.mm:
2693
26942014-03-17  Anders Carlsson  <andersca@apple.com>
2695
2696        WebKitLegacy headers should #import the relevant WebKit headers
2697        https://bugs.webkit.org/show_bug.cgi?id=130372
2698        <rdar://problem/16349094>
2699
2700        Reviewed by Dan Bernstein.
2701
2702        Create forwarding headers instead.
2703
2704        * WebKitLegacy/MigrateHeadersToLegacy.make:
2705
27062014-03-17  Tim Horton  <timothy_horton@apple.com>
2707
2708        Rename WKThumbnailView to _WKThumbnailView
2709        https://bugs.webkit.org/show_bug.cgi?id=130361
2710
2711        Reviewed by Anders Carlsson.
2712
2713        * MigrateHeaders.make:
2714
27152014-03-17  David Farler  <dfarler@apple.com>
2716
2717        REGRESSION: WebKitLegacy causes ASan build to fail
2718        <rdar://problem/16344326>
2719
2720        Reviewed by David Kilzer.
2721
2722        * Configurations/DebugRelease.xcconfig: Remove $(inherited) from
2723        OTHER_CFLAGS, OTHER_CPLUSPLUSFLAGS, OTHER_LDFLAGS to prevent
2724        double complete ASAN flags.
2725
27262014-03-16  Brent Fulgham  <bfulgham@apple.com>
2727
2728        Provide preference to enable additional AVFoundation options
2729        https://bugs.webkit.org/show_bug.cgi?id=130275
2730
2731        Reviewed by Eric Carlson.
2732
2733        * WebView/WebPreferenceKeysPrivate.h: Added new preference.
2734        * WebView/WebPreferences.mm:
2735        (+[WebPreferences initialize]): Initialize preference to false.
2736        (-[WebPreferences isInheritURIQueryComponentEnabled]): Added.
2737        (-[WebPreferences setEnableInheritURIQueryComponent:]): Added.
2738        * WebView/WebPreferencesPrivate.h:
2739        * WebView/WebView.mm:
2740        (-[WebView _preferencesChanged:]): Handle new preference.
2741
27422014-03-16  Darin Adler  <darin@apple.com>
2743
2744        Remove all deprecatedCharacters use from WebKit directory
2745        https://bugs.webkit.org/show_bug.cgi?id=130305
2746
2747        Reviewed by Andreas Kling.
2748
2749        * History/BinaryPropertyList.cpp:
2750        (BinaryPropertyListSerializer::appendStringObject): Use operator[]
2751        instead of deprecatedCharacters.
2752
27532014-03-14  Mark Rowe  <mrowe@apple.com>
2754
2755        Fix the production build.
2756
2757        Don't rely on USE_INTERNAL_SDK being set for the Production configuration since UseInternalSDK.xcconfig won't
2758        be at the expected relative path when working from installed source.
2759
2760        * Configurations/Base.xcconfig:
2761
27622014-03-14  Maciej Stachowiak  <mjs@apple.com>
2763
2764        Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
2765        https://bugs.webkit.org/show_bug.cgi?id=130276
2766        <rdar://problem/16266927>
2767        
2768        Reviewed by Simon Fraser.
2769
2770        * Carbon/CarbonUtils.h:
2771        * Carbon/CarbonUtils.m:
2772        * Carbon/CarbonWindowAdapter.h:
2773        * Carbon/CarbonWindowAdapter.mm:
2774        * Carbon/CarbonWindowContentView.h:
2775        * Carbon/CarbonWindowContentView.m:
2776        * Carbon/CarbonWindowFrame.h:
2777        * Carbon/CarbonWindowFrame.m:
2778        * Carbon/HIViewAdapter.h:
2779        * Carbon/HIViewAdapter.m:
2780        * Carbon/HIWebView.h:
2781        * Carbon/HIWebView.mm:
2782        * DOM/WebDOMOperations.h:
2783        * DOM/WebDOMOperations.mm:
2784        * DOM/WebDOMOperationsInternal.h:
2785        * DOM/WebDOMOperationsPrivate.h:
2786        * DefaultDelegates/WebDefaultContextMenuDelegate.h:
2787        * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2788        * DefaultDelegates/WebDefaultEditingDelegate.h:
2789        * DefaultDelegates/WebDefaultEditingDelegate.m:
2790        * DefaultDelegates/WebDefaultPolicyDelegate.h:
2791        * DefaultDelegates/WebDefaultPolicyDelegate.m:
2792        * DefaultDelegates/WebDefaultUIDelegate.h:
2793        * DefaultDelegates/WebDefaultUIDelegate.m:
2794        * History/WebBackForwardList.h:
2795        * History/WebBackForwardList.mm:
2796        * History/WebBackForwardListInternal.h:
2797        * History/WebBackForwardListPrivate.h:
2798        * History/WebHistory.h:
2799        * History/WebHistory.mm:
2800        * History/WebHistoryInternal.h:
2801        * History/WebHistoryItem.h:
2802        * History/WebHistoryItem.mm:
2803        * History/WebHistoryItemInternal.h:
2804        * History/WebHistoryItemPrivate.h:
2805        * History/WebHistoryPrivate.h:
2806        * History/WebURLsWithTitles.h:
2807        * History/WebURLsWithTitles.m:
2808        * MigrateHeaders.make:
2809        * Misc/OldWebAssertions.c:
2810        * Misc/WebCache.h:
2811        * Misc/WebCache.mm:
2812        * Misc/WebCoreStatistics.h:
2813        * Misc/WebCoreStatistics.mm:
2814        * Misc/WebDownload.h:
2815        * Misc/WebDownload.mm:
2816        * Misc/WebDownloadInternal.h:
2817        * Misc/WebElementDictionary.h:
2818        * Misc/WebElementDictionary.mm:
2819        * Misc/WebIconDatabase.h:
2820        * Misc/WebIconDatabase.mm:
2821        * Misc/WebIconDatabaseDelegate.h:
2822        * Misc/WebIconDatabaseInternal.h:
2823        * Misc/WebIconDatabasePrivate.h:
2824        * Misc/WebKit.h:
2825        * Misc/WebKitErrors.h:
2826        * Misc/WebKitErrors.m:
2827        * Misc/WebKitErrorsPrivate.h:
2828        * Misc/WebKitLogging.h:
2829        * Misc/WebKitLogging.m:
2830        * Misc/WebKitNSStringExtras.h:
2831        * Misc/WebKitNSStringExtras.mm:
2832        * Misc/WebKitStatistics.h:
2833        * Misc/WebKitStatistics.m:
2834        * Misc/WebKitStatisticsPrivate.h:
2835        * Misc/WebKitSystemBits.h:
2836        * Misc/WebKitSystemBits.m:
2837        * Misc/WebKitVersionChecks.h:
2838        * Misc/WebKitVersionChecks.m:
2839        * Misc/WebLocalizableStrings.h:
2840        * Misc/WebLocalizableStrings.mm:
2841        * Misc/WebNSArrayExtras.h:
2842        * Misc/WebNSArrayExtras.m:
2843        * Misc/WebNSControlExtras.h:
2844        * Misc/WebNSControlExtras.m:
2845        * Misc/WebNSDataExtras.h:
2846        * Misc/WebNSDataExtras.m:
2847        * Misc/WebNSDataExtrasPrivate.h:
2848        * Misc/WebNSDictionaryExtras.h:
2849        * Misc/WebNSDictionaryExtras.m:
2850        * Misc/WebNSEventExtras.h:
2851        * Misc/WebNSEventExtras.m:
2852        * Misc/WebNSFileManagerExtras.h:
2853        * Misc/WebNSFileManagerExtras.mm:
2854        * Misc/WebNSImageExtras.h:
2855        * Misc/WebNSImageExtras.m:
2856        * Misc/WebNSObjectExtras.h:
2857        * Misc/WebNSObjectExtras.mm:
2858        * Misc/WebNSPasteboardExtras.h:
2859        * Misc/WebNSPasteboardExtras.mm:
2860        * Misc/WebNSPrintOperationExtras.h:
2861        * Misc/WebNSPrintOperationExtras.m:
2862        * Misc/WebNSURLExtras.h:
2863        * Misc/WebNSURLExtras.mm:
2864        * Misc/WebNSURLRequestExtras.h:
2865        * Misc/WebNSURLRequestExtras.m:
2866        * Misc/WebNSUserDefaultsExtras.h:
2867        * Misc/WebNSUserDefaultsExtras.mm:
2868        * Misc/WebNSViewExtras.h:
2869        * Misc/WebNSViewExtras.m:
2870        * Misc/WebNSWindowExtras.h:
2871        * Misc/WebNSWindowExtras.m:
2872        * Misc/WebStringTruncator.h:
2873        * Misc/WebStringTruncator.mm:
2874        * Misc/WebTypesInternal.h:
2875        * Panels/WebAuthenticationPanel.h:
2876        * Panels/WebAuthenticationPanel.m:
2877        * Panels/WebPanelAuthenticationHandler.h:
2878        * Panels/WebPanelAuthenticationHandler.m:
2879        * Plugins/Hosted/ProxyRuntimeObject.h:
2880        * Plugins/Hosted/ProxyRuntimeObject.mm:
2881        * Plugins/WebBaseNetscapePluginView.h:
2882        * Plugins/WebBaseNetscapePluginView.mm:
2883        * Plugins/WebBasePluginPackage.h:
2884        * Plugins/WebBasePluginPackage.mm:
2885        * Plugins/WebJavaPlugIn.h:
2886        * Plugins/WebNetscapeContainerCheckContextInfo.h:
2887        * Plugins/WebNetscapeContainerCheckPrivate.h:
2888        * Plugins/WebNetscapeContainerCheckPrivate.mm:
2889        * Plugins/WebNetscapePluginPackage.h:
2890        * Plugins/WebNetscapePluginPackage.mm:
2891        * Plugins/WebNetscapePluginStream.h:
2892        * Plugins/WebNetscapePluginStream.mm:
2893        * Plugins/WebNetscapePluginView.h:
2894        * Plugins/WebNetscapePluginView.mm:
2895        * Plugins/WebPlugin.h:
2896        * Plugins/WebPluginContainer.h:
2897        * Plugins/WebPluginContainerCheck.h:
2898        * Plugins/WebPluginContainerCheck.mm:
2899        * Plugins/WebPluginContainerPrivate.h:
2900        * Plugins/WebPluginController.h:
2901        * Plugins/WebPluginController.mm:
2902        * Plugins/WebPluginDatabase.h:
2903        * Plugins/WebPluginDatabase.mm:
2904        * Plugins/WebPluginPackage.h:
2905        * Plugins/WebPluginPackage.mm:
2906        * Plugins/WebPluginRequest.h:
2907        * Plugins/WebPluginRequest.m:
2908        * Plugins/WebPluginViewFactory.h:
2909        * Plugins/WebPluginViewFactoryPrivate.h:
2910        * Plugins/WebPluginsPrivate.h:
2911        * Plugins/WebPluginsPrivate.m:
2912        * Plugins/npapi.mm:
2913        * Storage/WebDatabaseManager.mm:
2914        * Storage/WebDatabaseManagerInternal.h:
2915        * Storage/WebDatabaseManagerPrivate.h:
2916        * WebCoreSupport/SearchPopupMenuMac.mm:
2917        * WebCoreSupport/WebAlternativeTextClient.h:
2918        * WebCoreSupport/WebAlternativeTextClient.mm:
2919        * WebCoreSupport/WebCachedFramePlatformData.h:
2920        * WebCoreSupport/WebChromeClient.h:
2921        * WebCoreSupport/WebChromeClient.mm:
2922        * WebCoreSupport/WebContextMenuClient.h:
2923        * WebCoreSupport/WebContextMenuClient.mm:
2924        * WebCoreSupport/WebDragClient.h:
2925        * WebCoreSupport/WebDragClient.mm:
2926        * WebCoreSupport/WebEditorClient.h:
2927        * WebCoreSupport/WebEditorClient.mm:
2928        * WebCoreSupport/WebFrameLoaderClient.h:
2929        * WebCoreSupport/WebFrameLoaderClient.mm:
2930        * WebCoreSupport/WebIconDatabaseClient.h:
2931        * WebCoreSupport/WebIconDatabaseClient.mm:
2932        * WebCoreSupport/WebInspectorClient.h:
2933        * WebCoreSupport/WebInspectorClient.mm:
2934        * WebCoreSupport/WebJavaScriptTextInputPanel.h:
2935        * WebCoreSupport/WebJavaScriptTextInputPanel.m:
2936        * WebCoreSupport/WebSecurityOrigin.mm:
2937        * WebCoreSupport/WebSecurityOriginInternal.h:
2938        * WebCoreSupport/WebSecurityOriginPrivate.h:
2939        * WebCoreSupport/WebSystemInterface.h:
2940        * WebCoreSupport/WebSystemInterface.mm:
2941        * WebInspector/WebInspector.h:
2942        * WebInspector/WebInspector.mm:
2943        * WebInspector/WebInspectorPrivate.h:
2944        * WebInspector/WebNodeHighlight.h:
2945        * WebInspector/WebNodeHighlight.mm:
2946        * WebInspector/WebNodeHighlightView.h:
2947        * WebInspector/WebNodeHighlightView.mm:
2948        * WebInspector/WebNodeHighlighter.h:
2949        * WebInspector/WebNodeHighlighter.mm:
2950        * WebKitLegacy/MigrateHeadersToLegacy.make:
2951        * WebKitPrefix.h:
2952        * WebView/WebArchive.h:
2953        * WebView/WebArchive.mm:
2954        * WebView/WebArchiveInternal.h:
2955        * WebView/WebClipView.h:
2956        * WebView/WebClipView.mm:
2957        * WebView/WebDashboardRegion.h:
2958        * WebView/WebDashboardRegion.mm:
2959        * WebView/WebDataSource.h:
2960        * WebView/WebDataSource.mm:
2961        * WebView/WebDataSourceInternal.h:
2962        * WebView/WebDataSourcePrivate.h:
2963        * WebView/WebDelegateImplementationCaching.h:
2964        * WebView/WebDelegateImplementationCaching.mm:
2965        * WebView/WebDocument.h:
2966        * WebView/WebDocumentInternal.h:
2967        * WebView/WebDocumentLoaderMac.h:
2968        * WebView/WebDocumentLoaderMac.mm:
2969        * WebView/WebDocumentPrivate.h:
2970        * WebView/WebDynamicScrollBarsViewInternal.h:
2971        * WebView/WebEditingDelegate.h:
2972        * WebView/WebEditingDelegatePrivate.h:
2973        * WebView/WebFormDelegate.h:
2974        * WebView/WebFormDelegate.m:
2975        * WebView/WebFormDelegatePrivate.h:
2976        * WebView/WebFrame.h:
2977        * WebView/WebFrame.mm:
2978        * WebView/WebFrameInternal.h:
2979        * WebView/WebFrameLoadDelegate.h:
2980        * WebView/WebFrameLoadDelegatePrivate.h:
2981        * WebView/WebFramePrivate.h:
2982        * WebView/WebFrameView.h:
2983        * WebView/WebFrameView.mm:
2984        * WebView/WebFrameViewInternal.h:
2985        * WebView/WebFrameViewPrivate.h:
2986        * WebView/WebHTMLRepresentation.h:
2987        * WebView/WebHTMLRepresentation.mm:
2988        * WebView/WebHTMLRepresentationPrivate.h:
2989        * WebView/WebHTMLView.h:
2990        * WebView/WebHTMLView.mm:
2991        * WebView/WebHTMLViewInternal.h:
2992        * WebView/WebHTMLViewPrivate.h:
2993        * WebView/WebNotification.h:
2994        * WebView/WebNotification.mm:
2995        * WebView/WebNotificationInternal.h:
2996        * WebView/WebPDFRepresentation.h:
2997        * WebView/WebPDFRepresentation.mm:
2998        * WebView/WebPDFView.h:
2999        * WebView/WebPDFView.mm:
3000        * WebView/WebPolicyDelegate.h:
3001        * WebView/WebPolicyDelegate.mm:
3002        * WebView/WebPolicyDelegatePrivate.h:
3003        * WebView/WebPreferenceKeysPrivate.h:
3004        * WebView/WebPreferences.h:
3005        * WebView/WebPreferences.mm:
3006        * WebView/WebPreferencesPrivate.h:
3007        * WebView/WebRenderLayer.h:
3008        * WebView/WebRenderLayer.mm:
3009        * WebView/WebRenderNode.h:
3010        * WebView/WebRenderNode.mm:
3011        * WebView/WebResource.h:
3012        * WebView/WebResource.mm:
3013        * WebView/WebResourceInternal.h:
3014        * WebView/WebResourceLoadDelegate.h:
3015        * WebView/WebResourceLoadDelegatePrivate.h:
3016        * WebView/WebResourcePrivate.h:
3017        * WebView/WebScriptDebugDelegate.h:
3018        * WebView/WebScriptDebugDelegate.mm:
3019        * WebView/WebScriptDebugger.h:
3020        * WebView/WebScriptDebugger.mm:
3021        * WebView/WebTextCompletionController.mm:
3022        * WebView/WebUIDelegate.h:
3023        * WebView/WebUIDelegatePrivate.h:
3024        * WebView/WebView.h:
3025        * WebView/WebView.mm:
3026        * WebView/WebViewData.h:
3027        * WebView/WebViewData.mm:
3028        * WebView/WebViewInternal.h:
3029        * WebView/WebViewPrivate.h:
3030
30312014-03-14  Ryosuke Niwa  <rniwa@webkit.org>
3032
3033        REGRESSION(r165385): [WebTextIterator currentRange] crashes
3034        https://bugs.webkit.org/show_bug.cgi?id=130271
3035
3036        Reviewed by Anders Carlsson.
3037
3038        After r165385, TextIterator::range no longer checked the nullity of m_positionNode. As a result,
3039        [WebTextIterator currentRange] which simply calls TextIterator::range crashes when an application
3040        that embeds WebKit doesn't check [WebTextIterator atEnd] first.
3041
3042        Preserve the old public API behavior by checking atEnd in [WebTextIterator currentRange].
3043
3044        * WebView/WebTextIterator.mm:
3045        (-[WebTextIterator currentRange]):
3046
30472014-03-12  Sergio Villar Senin  <svillar@igalia.com>
3048
3049        Rename DEFINE_STATIC_LOCAL to DEPRECATED_DEFINE_STATIC_LOCAL
3050        https://bugs.webkit.org/show_bug.cgi?id=129612
3051
3052        Reviewed by Darin Adler.
3053
3054        For new code use static NeverDestroyed<T> instead.
3055
3056        * History/WebBackForwardList.mm:
3057        (backForwardLists):
3058        * History/WebHistoryItem.mm:
3059        (historyItemWrappers):
3060        * Misc/WebNSPasteboardExtras.mm:
3061        (+[NSPasteboard _web_writableTypesForURL]):
3062        (_writableTypesForImageWithoutArchive):
3063        (_writableTypesForImageWithArchive):
3064        * Misc/WebStringTruncator.mm:
3065        (fontFromNSFont):
3066        * Plugins/Hosted/NetscapePluginHostManager.mm:
3067        (WebKit::NetscapePluginHostManager::shared):
3068        * Plugins/Hosted/NetscapePluginHostProxy.mm:
3069        (WebKit::pluginProxyMap):
3070        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3071        (WebKit::globalExceptionString):
3072        * Plugins/Hosted/ProxyInstance.mm:
3073        (WebKit::proxyClass):
3074        * Plugins/WebNetscapePluginStream.mm:
3075        (streams):
3076        * Storage/WebDatabaseManager.mm:
3077        (transactionBackgroundTaskIdentifierLock):
3078        * WebCoreSupport/WebUserMediaClient.mm:
3079        (userMediaRequestsMap):
3080        * WebView/WebHTMLRepresentation.mm:
3081        (regExpForLabels):
3082        * WebView/WebView.mm:
3083        (aeDescFromJSValue):
3084
30852014-03-13  Tim Horton  <timothy_horton@apple.com>
3086
3087        Fix relative paths to UseInternalSDK.xcconfig for ANGLE and WebKit/mac
3088
3089        Rubber-stamped by Mark Rowe.
3090
3091        One-too-few "..".
3092
3093        * Configurations/Base.xcconfig:
3094
30952014-03-13  Anders Carlsson  <andersca@apple.com>
3096
3097        Fix build.
3098
3099        * Misc/WebSharingServicePickerController.mm:
3100
31012014-03-13  Radu Stavila  <stavila@adobe.com>
3102
3103        Webkit not building on XCode 5.1 due to garbage collection no longer being supported
3104        https://bugs.webkit.org/show_bug.cgi?id=130087
3105
3106        Reviewed by Mark Rowe.
3107
3108        Disable garbage collection on macosx when not using internal SDK.
3109
3110        * Configurations/Base.xcconfig:
3111
31122014-03-10  Darin Adler  <darin@apple.com>
3113
3114        Avoid copy-prone idiom "for (auto item : collection)"
3115        https://bugs.webkit.org/show_bug.cgi?id=129990
3116
3117        Reviewed by Geoffrey Garen.
3118
3119        * WebView/WebFrame.mm:
3120        (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
3121        Use auto*. Also removed uneeded ASSERT_NO_EXCEPTION, which is already
3122        the default without specifying it explicitly.
3123
31242014-03-12  Brian Burg  <bburg@apple.com>
3125
3126        Web Inspector: Remove unused callId parameter from evaluateInWebInspector
3127        https://bugs.webkit.org/show_bug.cgi?id=129744
3128
3129        Reviewed by Timothy Hatcher.
3130
3131        * WebInspector/WebInspector.mm:
3132        (-[WebInspector evaluateInFrontend:script:]):
3133        * WebInspector/WebInspectorPrivate.h:
3134
31352014-03-12  Dean Jackson  <dino@apple.com>
3136
3137        [WebGL] WebKit1 + WebKit2 iOS clients should check load policy
3138        https://bugs.webkit.org/show_bug.cgi?id=130162
3139
3140        Reviewed by Simon Fraser.
3141
3142        Implement the webGLPolicyForURL methods, calling into WebKitSystemInterface.
3143
3144        * Configurations/WebKit.xcconfig: Add MobileAsset to iOS config.
3145        * WebCoreSupport/WebFrameLoaderClient.h:
3146        * WebCoreSupport/WebFrameLoaderClient.mm:
3147
31482014-03-12  Joseph Pecoraro  <pecoraro@apple.com>
3149
3150        Web Inspector: Disable REMOTE_INSPECTOR in earlier OS X releases
3151        https://bugs.webkit.org/show_bug.cgi?id=130118
3152
3153        Reviewed by Timothy Hatcher.
3154
3155        * Configurations/FeatureDefines.xcconfig:
3156
3157        * WebCoreSupport/WebInspectorClient.mm:
3158        (WebInspectorClient::indicate):
3159        (WebInspectorClient::hideIndication):
3160        Properly guard REMOTE_INSPECTOR only calls.
3161
31622014-03-12  Tim Horton  <timothy_horton@apple.com>
3163
3164        Build fix for ENABLE(IMAGE_CONTROLS) after 165479
3165
3166        * Misc/WebSharingServicePickerController.h:
3167        * Misc/WebSharingServicePickerController.mm:
3168        Don't use new-runtime features in code that has to build 32-bit.
3169
31702014-03-12  Anders Carlsson  <andersca@apple.com>
3171
3172        <rdar://problem/16307346> Add new WebKitLegacy.framework.
3173
3174        Reviewed by Dan Bernstein.
3175
3176        * Configurations/WebKitLegacy.xcconfig:
3177        Add xcconfig file for the new framework.
3178
3179        * WebKitLegacy/Info.plist:
3180        Add Info.plist for WebKitLegacy.framework.
3181
3182        * WebKitLegacy/MigrateHeadersToLegacy.make:
3183        Add makefile that copies headers from WebKit to WebKitLegacy and rewrites includes from WebKit/ to WebKitLegacy/
3184        * WebKitLegacy/WebKitLegacy.cpp:
3185        Add an empty file so we'll have something to link.
3186
31872014-03-12  Tim Horton  <timothy_horton@apple.com>
3188
3189        Hook up image controls for WebKit1
3190        https://bugs.webkit.org/show_bug.cgi?id=130062
3191        <rdar://problem/15964809>
3192
3193        Reviewed by Brady Eidson.
3194
3195        * Misc/WebSharingServicePickerController.h: Added.
3196        * Misc/WebSharingServicePickerController.mm: Added.
3197        (-[WebSharingServicePickerController initWithImage:menuClient:]):
3198        (-[WebSharingServicePickerController menu]):
3199        (-[WebSharingServicePickerController sharingServicePicker:delegateForSharingService:]):
3200        (-[WebSharingServicePickerController sharingServicePicker:didChooseSharingService:]):
3201        (-[WebSharingServicePickerController sharingService:didShareItems:]):
3202        (-[WebSharingServicePickerController sharingService:didFailToShareItems:error:]):
3203        (-[WebSharingServicePickerController sharingService:sourceWindowForShareItems:sharingContentScope:]):
3204        Add a NSSharingServiceDelegate and NSSharingServicePickerDelegate, which will also
3205        provide a NSMenu instance for WebContextMenuClient to pop up when image controls are needed.
3206        When data is returned from the service, it is re-inserted into the image via replaceControlledImage.
3207
3208        * WebCoreSupport/WebContextMenuClient.h:
3209        * WebCoreSupport/WebContextMenuClient.mm:
3210        (WebContextMenuClient::contextMenuForEvent):
3211        Factor out code to decide which NSMenu to use, so that we can use early-returns to simplify it.
3212        If we hit an image with image controls, use the WebSharingServicePickerController's menu.
3213
3214        (WebContextMenuClient::showContextMenu):
3215        (WebContextMenuClient::clearSharingServicePickerController):
3216
32172014-03-10  Jer Noble  <jer.noble@apple.com>
3218
3219        [iOS][WK1] Crash in HTMLMediaElement::createElementRenderer() - "-[NSSet addObject:]: object cannot be nil"
3220        https://bugs.webkit.org/show_bug.cgi?id=129634
3221
3222        Reviewed by Eric Carlson.
3223
3224        If a plugin fails to create a NSView, a nil object is inserted into the WebPluginController's
3225        pluginViews set. This is an exceptional case, so add an ASSERT so that this error will continue
3226        to occur in debug builds, but also add an early return so as not to crash release builds.
3227
3228        * Plugins/WebPluginController.mm:
3229        (+[WebPluginController addPlugInView:]):
3230
32312014-03-06  Alexey Proskuryakov  <ap@apple.com>
3232
3233        [Mac] Don't perform a round-trip through WebProcess before interpreting key events
3234        https://bugs.webkit.org/show_bug.cgi?id=129812
3235
3236        Reviewed by Darin Adler.
3237
3238        * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleInputMethodKeydown):
3239        Added a FIXME. WebKit1/mac is the only port that uses this roundabout way to
3240        interpret events, so it would simplify code if we switched it to WebKit2/mac model.
3241
32422014-03-08  Simon Fraser  <simon.fraser@apple.com>
3243
3244        [iOS Wk2] Can't scroll after going back to page in page cache
3245        https://bugs.webkit.org/show_bug.cgi?id=129989
3246        <rdar://problem/16217588>
3247
3248        Reviewed by Dan Bernstein.
3249
3250        iOS has a special FrameLoader::forceLayoutWithoutRecalculatingStyle()
3251        function that is called instead of FrameView::forceLayout(). This was unimplemented
3252        for the WK2 FrameLoaderClient, so no layout was forced, with the result
3253        that the contentSize was never updated and scrolling was broken.
3254        
3255        Fix by renaming the client function to forceLayoutOnRestoreFromPageCache()
3256        and having it return a bool to say whether the default forceLayout()
3257        should be done. WK1 can then continue to have its custom behavior,
3258        and Wk2 will simply do a forceLayout().
3259        
3260        Also remove FrameLaoderClient::forceLayout(), which was never called.
3261
3262        * WebCoreSupport/WebFrameLoaderClient.h:
3263        * WebCoreSupport/WebFrameLoaderClient.mm:
3264        (WebFrameLoaderClient::forceLayoutOnRestoreFromPageCache):
3265
32662014-03-07  Anders Carlsson  <andersca@apple.com>
3267
3268        Add the remaining WebKit2 headers to WEBKIT2_HEADERS
3269        https://bugs.webkit.org/show_bug.cgi?id=129942
3270        <rdar://problem/15920020>
3271
3272        Reviewed by Tim Horton.
3273
3274        * MigrateHeaders.make:
3275
32762014-03-07  Anders Carlsson  <andersca@apple.com>
3277
3278        MigrateHeaders.make should remove C SPI includes from WebKit2 headers
3279        https://bugs.webkit.org/show_bug.cgi?id=129937
3280        <rdar://problem/15920020>
3281
3282        Reviewed by Tim Horton.
3283
3284        * MigrateHeaders.make:
3285        Add WKPreferences.h to WEBKIT2_HEADERS. 
3286        Add a sed rule that deletes all lines that start with a # and contain <WebKit/*Ref.h>.
3287
32882014-03-07  Anders Carlsson  <andersca@apple.com>
3289
3290        Make it possible to copy WebKit2 headers to WebKit.framework
3291        https://bugs.webkit.org/show_bug.cgi?id=129935
3292        <rdar://problem/15920020>
3293
3294        Reviewed by Dan Bernstein.
3295
3296        * MigrateHeaders.make:
3297        Gather a list of public and private WebKit2 headers and filter them against the WEBKIT2_HEADERS list.
3298        The matching headers are copied to the respective Headers or PrivateHeaders directories under WebKit.framework,
3299        and also have their #imports rewritten to reference WebKit instead of WebKit2.
3300
3301        * migrate-headers.sh: Added.
3302        Set up the WEBKIT2_FRAMEWORKS_DIR if needed.
3303
33042014-03-07  Anders Carlsson  <andersca@apple.com>
3305
3306        Fix a typo
3307        <rdar://problem/15920020>
3308
3309        Rubber-stamped by Dan Bernstein.
3310
3311        * Configurations/WebKit.xcconfig:
3312
33132014-03-07  Anders Carlsson  <andersca@apple.com>
3314
3315        Tweak the WebKit2 frameworks directories
3316        https://bugs.webkit.org/show_bug.cgi?id=129910
3317        <rdar://problem/15920020>
3318
3319        Reviewed by Dan Bernstein.
3320
3321        Use an SDK relative directory for production builds.
3322
3323        * Configurations/WebKit.xcconfig:
3324
33252014-03-07  Anders Carlsson  <andersca@apple.com>
3326
3327        Link WebKit.framework against WebKit2.framework and re-export all WebKit2 symbols
3328        https://bugs.webkit.org/show_bug.cgi?id=129901
3329        <rdar://problem/15920020>
3330
3331        Reviewed by Andreas Kling.
3332
3333        * Configurations/WebKit.xcconfig:
3334
33352014-03-06  Joseph Pecoraro  <pecoraro@apple.com>
3336
3337        Web Inspector: Expose the console object in JSContexts to interact with Web Inspector
3338        https://bugs.webkit.org/show_bug.cgi?id=127944
3339
3340        Reviewed by Geoffrey Garen.
3341
3342        * WebCoreSupport/WebChromeClient.h:
3343        * WebCoreSupport/WebChromeClient.mm:
3344        Update namespaces.
3345
33462014-03-05  Eric Carlson  <eric.carlson@apple.com>
3347
3348        [iOS] Show external device name/type in placeholder
3349        https://bugs.webkit.org/show_bug.cgi?id=129723
3350
3351        Reviewed by Jer Noble.
3352
3353        * WebCoreSupport/WebSystemInterface.mm:
3354        (InitWebCoreSystemInterface):
3355
33562014-03-05  Simon Fraser  <simon.fraser@apple.com>
3357
3358        ObjC exception when dropping files into a WKView: drag and drop uses code from WebKit.framework
3359        https://bugs.webkit.org/show_bug.cgi?id=129752
3360
3361        Reviewed by Enrica Casucci.
3362        
3363        Call URLByCanonicalizingURL() which is implemented in WebCore.
3364
3365        * Misc/WebNSURLExtras.mm:
3366        (-[NSURL _webkit_canonicalize]):
3367
33682014-03-04  Zalan Bujtas  <zalan@apple.com>
3369
3370        Enable device pixel repaint rect tracking.
3371        https://bugs.webkit.org/show_bug.cgi?id=129712
3372
3373        Reviewed by Simon Fraser.
3374
3375        Tracked repaint rects are device pixel snapped now to support hiDPI test cases.
3376
3377        * WebView/WebView.mm:
3378        (-[WebView trackedRepaintRects]): Keep existing behavior for now.
3379
33802014-03-04  Simon Fraser  <simon.fraser@apple.com>
3381
3382        Allow iOS DumpRenderTree crashes to show application-specific information
3383        https://bugs.webkit.org/show_bug.cgi?id=129705
3384
3385        Reviewed by David Kilzer.
3386
3387        Make the WKSI function SetCrashReportApplicationSpecificInformation available
3388        in iOS simulator builds.
3389
3390        * WebCoreSupport/WebSystemInterface.mm:
3391        (InitWebCoreSystemInterface):
3392
33932014-03-04  Mark Hahnenberg  <mhahnenberg@apple.com>
3394
3395        Merge API shims and JSLock
3396        https://bugs.webkit.org/show_bug.cgi?id=129650
3397
3398        Reviewed by Mark Lam.
3399
3400        JSLock is now taking on all of APIEntryShim's responsibilities since there is never a reason 
3401        to take just the JSLock. Ditto for DropAllLocks and APICallbackShim.
3402
3403        * WebView/WebFrame.mm:
3404        (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
3405
34062014-03-02  Darin Adler  <darin@apple.com>
3407
3408        Sort Mac platform export files so they merge better
3409        https://bugs.webkit.org/show_bug.cgi?id=129581
3410
3411        Reviewed by Sam Weinig.
3412
3413        * WebKit.exp: Ran the new sort-export-file on this.
3414
34152014-03-02  Darin Adler  <darin@apple.com>
3416
3417        Change public text iterator API implementations to not depend on 16-bit character pointers
3418        https://bugs.webkit.org/show_bug.cgi?id=129566
3419
3420        Reviewed by Anders Carlsson.
3421
3422        * WebView/WebTextIterator.mm:
3423        (-[WebTextIterator initWithRange:]): Use make_unique instead of adoptPtr.
3424        (-[WebTextIterator advance]): Clear out the upconverted text since we are moving on to the
3425        next text.
3426        (-[WebTextIterator currentTextPointer]): Upconvert if we have 8-bit text.
3427        (-[WebTextIterator currentTextLength]): Call TextIterator::text().length() since we will
3428        probably be removing TextIterator::length eventually.
3429
34302014-03-01  Pratik Solanki  <psolanki@apple.com>
3431
3432        [iOS] selectionImageForcingBlackText should return autoreleased object
3433        https://bugs.webkit.org/show_bug.cgi?id=129437
3434        <rdar://problem/15810384>
3435
3436        Reviewed by Darin Adler.
3437
3438        * WebView/WebHTMLView.mm:
3439        (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
3440
34412014-02-28  Dan Bernstein  <mitz@apple.com>
3442
3443        [Mac] Remove MailQuirksUserScript.js
3444        https://bugs.webkit.org/show_bug.cgi?id=129536
3445
3446        Reviewed by Andy Estes.
3447
3448        * Configurations/WebKit.xcconfig: Removed from EXCLUDED_SOURCE_FILE_NAMES_iphoneos.
3449        * Misc/MailQuirksUserScript.js: Removed. This file has been unused since r147447.
3450
34512014-02-28  Timothy Hatcher  <timothy@apple.com>
3452
3453        Properly handle when Test.html is not present in Production builds.
3454
3455        https://bugs.webkit.org/show_bug.cgi?id=129506
3456
3457        Reviewed by Joseph Pecoraro.
3458
3459        * WebCoreSupport/WebInspectorClient.mm:
3460        (-[WebInspectorWindowController inspectorTestPagePath]):
3461        (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
3462
34632014-02-27  Brian Burg  <bburg@apple.com>
3464
3465        Web Inspector: model tests should use a special Test.html inspector page
3466        https://bugs.webkit.org/show_bug.cgi?id=129190
3467
3468        Reviewed by Timothy Hatcher.
3469
3470        Support creating a separate test inspector page, based on the value of
3471        InspectorController::isUnderTest(). Modify the navigation policy to check
3472        the URL against both normal and test inspector pages.
3473
3474        * WebCoreSupport/WebInspectorClient.mm:
3475        (WebInspectorClient::openInspectorFrontend):
3476        (-[WebInspectorWindowController init]):
3477        (-[WebInspectorWindowController initWithInspectedWebView:isUnderTest:]):
3478        Move the initial navigation of the inspector page to this method, and change
3479        the URL based on the value of InspectorController::isUnderTest().
3480
3481        (-[WebInspectorWindowController inspectorTestPagePath]): Added.
3482        (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
3483
34842014-02-27  Pratik Solanki  <psolanki@apple.com>
3485
3486        Assertion failure at CachedResource.h:196: ASSERT(!m_purgeableData)
3487        https://bugs.webkit.org/show_bug.cgi?id=129349
3488        <rdar://problem/14871837>
3489
3490        Reviewed by Joseph Pecoraro.
3491
3492        The code for clearing out memory mapped notification callbacks is only needed when loading
3493        PDFs. And in such cases, we always have dataSourceDelegate object. So make this code
3494        conditional on its presence so that we don't trigger the assert for non-PDF main resources.
3495
3496        * WebView/WebDataSource.mm:
3497        (-[WebDataSource dealloc]):
3498
34992014-02-26  Andy Estes  <aestes@apple.com>
3500
3501        [iOS] Support network state notification using CPNetworkObserver
3502        https://bugs.webkit.org/show_bug.cgi?id=129358
3503
3504        Reviewed by Dan Bernstein.
3505
3506        * WebView/WebView.mm:
3507        (-[WebView _setNetworkStateIsOnline:]): Retained an empty
3508        implementation for binary compatibility for UIKit.
3509        (+[WebView _doNotStartObservingNetworkReachability]): Called
3510        Settings::setShouldOptOutOfNetworkStateObservation(true).
3511        * WebView/WebViewPrivate.h: Removed declaration of
3512        _setNetworkStateIsOnline: and declared
3513        _doNotStartObservingNetworkReachability.
3514
35152014-02-25  Anders Carlsson  <andersca@apple.com>
3516
3517        Get rid of VisitedLinkStrategy
3518        https://bugs.webkit.org/show_bug.cgi?id=129324
3519
3520        Reviewed by Dan Bernstein.
3521
3522        * WebCoreSupport/WebPlatformStrategies.h:
3523        * WebCoreSupport/WebPlatformStrategies.mm:
3524
35252014-02-25  Sergio Villar Senin  <svillar@igalia.com>
3526
3527        [CSS Grid Layout] Add ENABLE flag
3528        https://bugs.webkit.org/show_bug.cgi?id=129153
3529
3530        Reviewed by Simon Fraser.
3531
3532        Added ENABLE_CSS_GRID_LAYOUT feature flag.
3533
3534        * Configurations/FeatureDefines.xcconfig:
3535
35362014-02-24  Anders Carlsson  <andersca@apple.com>
3537
3538        Add WebViewGroup
3539        https://bugs.webkit.org/show_bug.cgi?id=129280
3540
3541        Reviewed by Dan Bernstein.
3542
3543        This is a first step towards getting rid of page groups in WebCore. The idea is that
3544        everything that is per page group in WebCore will be per page. In order to retain WebKit1 compatibility
3545        WebViewGroup is going to take over more and more responsibility from WebCore::PageGroup.
3546
3547        * WebCoreSupport/WebViewGroup.h: Added.
3548        * WebCoreSupport/WebViewGroup.mm: Added.
3549        (webViewGroups):
3550        (WebViewGroup::getOrCreate):
3551        (WebViewGroup::WebViewGroup):
3552        (WebViewGroup::~WebViewGroup):
3553        (WebViewGroup::addWebView):
3554        (WebViewGroup::removeWebView):
3555        * WebView/WebView.mm:
3556        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3557        (-[WebView _close]):
3558        (-[WebView setGroupName:]):
3559        * WebView/WebViewData.h:
3560        * WebView/WebViewData.mm:
3561
35622014-02-24  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
3563
3564        Code cleanup: remove leftover ENABLE(WORKERS) macros and support.
3565        https://bugs.webkit.org/show_bug.cgi?id=129255
3566
3567        Reviewed by Csaba Osztrogonác.
3568
3569        ENABLE_WORKERS macro was removed in r159679.
3570        Support is now also removed from xcconfig files.
3571
3572        * Configurations/FeatureDefines.xcconfig:
3573
35742014-02-24  David Kilzer  <ddkilzer@apple.com>
3575
3576        Remove redundant setting in FeatureDefines.xcconfig
3577
3578        * Configurations/FeatureDefines.xcconfig:
3579
35802014-02-23  Sam Weinig  <sam@webkit.org>
3581
3582        Update FeatureDefines.xcconfig
3583
3584        Rubber-stamped by Anders Carlsson.
3585
3586        * Configurations/FeatureDefines.xcconfig:
3587
35882014-02-23  Sam Weinig  <sam@webkit.org>
3589
3590        Move telephone number detection behind its own ENABLE macro
3591        https://bugs.webkit.org/show_bug.cgi?id=129236
3592
3593        Reviewed by Dean Jackson.
3594
3595        * Configurations/FeatureDefines.xcconfig:
3596        Add ENABLE_TELEPHONE_NUMBER_DETECTION.
3597
35982014-02-21  Sam Weinig  <sam@webkit.org>
3599
3600        Expose phase and momentum phase as SPI on DOMWheelEvent
3601        <rdar://problem/16110871>
3602        https://bugs.webkit.org/show_bug.cgi?id=129184
3603
3604        Reviewed by Anders Carlsson.
3605
3606        * DOM/WebDOMOperations.mm:
3607        (toNSEventPhase):
3608        (-[DOMWheelEvent _phase]):
3609        (-[DOMWheelEvent _momentumPhase]):
3610        * DOM/WebDOMOperationsPrivate.h:
3611        Expose _phase and _momentumPhase as SPI.
3612
3613        * MigrateHeaders.make:
3614        Make DOMWheelEventInternal.h to WebKit.
3615
36162014-02-22  David Kilzer  <ddkilzer@apple.com>
3617
3618        Revert r164434 since it actually broke ASan builds
3619        <http://webkit.org/b/128871>
3620
3621        * Configurations/WebKit.xcconfig: This caused -asan-blacklist to
3622        be included twice on every compiler command, which caused clang
3623        to error out.
3624
36252014-02-21  Brent Fulgham  <bfulgham@apple.com>
3626
3627        Extend media support for WebVTT sources
3628        https://bugs.webkit.org/show_bug.cgi?id=129156
3629
3630        Reviewed by Eric Carlson.
3631
3632        * Configurations/FeatureDefines.xcconfig: Add new feature define for AVF_CAPTIONS
3633
36342014-02-20  Brady Eidson  <beidson@apple.com>
3635
3636        Add very basic image control rendering
3637        https://bugs.webkit.org/show_bug.cgi?id=129080
3638
3639        Reviewed by Tim Horton.
3640
3641        Expose the imageControlsEnabled setting to WebKit1 so DRT can use it.
3642
3643        * WebView/WebPreferenceKeysPrivate.h:
3644        * WebView/WebPreferences.mm:
3645        (+[WebPreferences initialize]):
3646        (-[WebPreferences imageControlsEnabled]):
3647        (-[WebPreferences setImageControlsEnabled:]):
3648        * WebView/WebPreferencesPrivate.h:
3649
3650        * WebView/WebView.mm:
3651        (-[WebView _preferencesChanged:]):
3652
36532014-02-20  David Kilzer  <ddkilzer@apple.com>
3654
3655        [ASan] WebKit1 sources are not compiled using ASAN macros
3656        <http://webkit.org/b/128871>
3657
3658        Reviewed by Brent Fulgham.
3659
3660        * Configurations/WebKit.xcconfig: Use $inherited for
3661        OTHER_CFLAGS and OTHER_CPLUSPLUSFLAGS so that ASAN_OTHER_CFLAGS
3662        and ASAN_OTHER_CPLUSPLUSFLAGS are inherited from
3663        DebugRelease.xcconfig.
3664
36652014-02-19  Brady Eidson  <beidson@apple.com>
3666
3667        Add FeatureDefines for image controls
3668        https://bugs.webkit.org/show_bug.cgi?id=129022
3669
3670        Reviewed by Jer Noble.
3671
3672        * Configurations/FeatureDefines.xcconfig:
3673
36742014-02-18  Sam Weinig  <sam@webkit.org>
3675
3676        Simplify HTML tokenizer parameterization down to what is used
3677        https://bugs.webkit.org/show_bug.cgi?id=128977
3678
3679        Reviewed by Alexey Proskuryakov.
3680
3681        Remove unused _setCustomHTMLTokenizerTimeDelay and _setCustomHTMLTokenizerChunkSize SPI.
3682
3683        * WebView/WebView.mm:
3684        * WebView/WebViewPrivate.h:
3685
36862014-02-17  Anders Carlsson  <andersca@apple.com>
3687
3688        Remove view source code
3689        https://bugs.webkit.org/show_bug.cgi?id=127233
3690
3691        Reviewed by Antti Koivisto.
3692
3693        * WebView/WebView.mm:
3694        * WebView/WebViewPrivate.h:
3695
36962014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
3697
3698        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
3699        https://bugs.webkit.org/show_bug.cgi?id=128681
3700
3701        Reviewed by Timothy Hatcher.
3702
3703        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
3704        WebCore/inspector/*. Besides files in there, a few other files in
3705        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
3706        and WebCore/testing were touched.
3707
3708        * WebCoreSupport/WebInspectorClient.h:
3709        * WebCoreSupport/WebInspectorClient.mm:
3710
37112014-02-15  Alexey Proskuryakov  <ap@apple.com>
3712
3713        [Mac] Remove WebSerializedJSValue SPI
3714        https://bugs.webkit.org/show_bug.cgi?id=128720
3715
3716        Reviewed by Anders Carlsson.
3717
3718        * WebKit.exp:
3719        * WebView/WebSerializedJSValue.h: Removed.
3720        * WebView/WebSerializedJSValue.mm: Removed.
3721        * WebView/WebSerializedJSValuePrivate.h: Removed.
3722
37232014-02-15  Alexey Proskuryakov  <ap@apple.com>
3724
3725        [Mac] All WebKit clients should encrypt WebCrypto keys automatically
3726        https://bugs.webkit.org/show_bug.cgi?id=128852
3727
3728        Reviewed by Oliver Hunt.
3729
3730        * WebCoreSupport/WebChromeClient.mm:
3731        (WebChromeClient::wrapCryptoKey):
3732        (WebChromeClient::unwrapCryptoKey):
3733        Call the default implementation if key is not provided by a client.
3734
37352014-02-14  Anders Carlsson  <andersca@apple.com>
3736
3737        Control tints don't update inside WebViews
3738        https://bugs.webkit.org/show_bug.cgi?id=128862
3739
3740        Reviewed by Ryosuke Niwa.
3741
3742        * WebView/WebView.mm:
3743        (-[WebView _windowChangedKeyState]):
3744        Call [super _windowChangedKeyState].
3745
37462014-02-13  Myles C. Maxfield  <mmaxfield@apple.com>
3747
3748        During a copy, position:fixed gets converted to position:absolute even if only part of the document is selected
3749        https://bugs.webkit.org/show_bug.cgi?id=128688
3750
3751        Reviewed by Ryosuke Niwa.
3752
3753        Renames the ConvertPositionStyleOnCopy setting to ShouldConvertPositionStyleOnCopy
3754
3755        * WebView/WebPreferenceKeysPrivate.h:
3756        * WebView/WebPreferences.mm:
3757        (-[WebPreferences shouldConvertPositionStyleOnCopy]):
3758        (-[WebPreferences setShouldConvertPositionStyleOnCopy:]):
3759        * WebView/WebPreferencesPrivate.h:
3760        * WebView/WebView.mm:
3761        (-[WebView _preferencesChanged:]):
3762
37632014-02-13  Alexey Proskuryakov  <ap@apple.com>
3764
3765        [Mac] Add a WebKit1 SPI to get WebCrypto master key from a client
3766        https://bugs.webkit.org/show_bug.cgi?id=128725
3767
3768        Reviewed by Anders Carlsson.
3769
3770        * WebCoreSupport/WebChromeClient.mm:
3771        (WebChromeClient::wrapCryptoKey):
3772        (WebChromeClient::unwrapCryptoKey):
3773        * WebView/WebUIDelegatePrivate.h:
3774        Looks like UIDelegate is the closest we have to a reasonable place.
3775
37762014-02-13  Dan Bernstein  <mitz@apple.com>
3777
3778        iOS build fix.
3779
3780        * WebView/WebView.mm:
3781        (+[WebView registerForMemoryNotifications]):
3782
37832014-02-12  Alexey Proskuryakov  <ap@apple.com>
3784
3785        Wrap WebCrypto keys in SerializedScriptValue
3786        https://bugs.webkit.org/show_bug.cgi?id=128680
3787
3788        Reviewed by Anders Carlsson.
3789
3790        Retrieve a master key (placeholder code for now), and use it to wrap key data.
3791
3792        * WebCoreSupport/WebChromeClient.mm:
3793        (WebChromeClient::wrapCryptoKey):
3794        (WebChromeClient::unwrapCryptoKey):
3795
37962014-02-11  Ryosuke Niwa  <rniwa@webkit.org>
3797
3798        Frame::rectForSelection shouldn't instantiate FrameSelection
3799        https://bugs.webkit.org/show_bug.cgi?id=128587
3800
3801        Reviewed by Enrica Casucci.
3802
3803        * WebCoreSupport/WebEditorClient.h:
3804        * WebCoreSupport/WebEditorClient.mm:
3805        (WebEditorClient::WebEditorClient):
3806        (WebEditorClient::respondToChangedSelection):
3807
38082014-02-10  Myles C. Maxfield  <mmaxfield@apple.com>
3809
3810        Convert position:sticky and position:fixed properties to position:static and position:absolute upon copy
3811        https://bugs.webkit.org/show_bug.cgi?id=128194
3812
3813        Reviewed by Simon Fraser.
3814
3815        * WebView/WebPreferenceKeysPrivate.h:
3816        * WebView/WebPreferences.mm:
3817        (-[WebPreferences convertPositionStyleOnCopy]):
3818        (-[WebPreferences setConvertPositionStyleOnCopy:]):
3819        * WebView/WebPreferencesPrivate.h: Opt-in to new behavior
3820        * WebView/WebView.mm:
3821        (-[WebView _preferencesChanged:]):
3822
38232014-02-11  Andy Estes  <aestes@apple.com>
3824
3825        [Mac] connection:willStopBufferingData: no longer exists in NSURLConnectionDelegate
3826        https://bugs.webkit.org/show_bug.cgi?id=128583
3827
3828        Reviewed by Anders Carlsson.
3829
3830        The delegate method was removed in Snow Leopard.
3831
3832        * Misc/WebDownload.mm:
3833
38342014-02-11  Alexey Proskuryakov  <ap@apple.com>
3835
3836        iOS build fix.
3837
3838        * WebCoreSupport/WebChromeClient.mm: Fixed incorrectly nested ifdefs.
3839
38402014-02-10  Alexey Proskuryakov  <ap@apple.com>
3841
3842        Add hooks for wrapping CryptoKeys in SerializedScriptValue
3843        https://bugs.webkit.org/show_bug.cgi?id=128567
3844
3845        Reviewed by Anders Carlsson.
3846
3847        * WebCoreSupport/WebChromeClient.h:
3848        * WebCoreSupport/WebChromeClient.mm:
3849        (WebChromeClient::wrapCryptoKey):
3850        (WebChromeClient::unwrapCryptoKey):
3851        Dummy implementation, to be filled in later.
3852
38532014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
3854
3855        Cleanup the interface of FrameSelection
3856        https://bugs.webkit.org/show_bug.cgi?id=128481
3857
3858        Reviewed by Andreas Kling.
3859
3860        * WebView/WebHTMLView.mm:
3861        (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
3862        (-[WebHTMLView selectionRect]):
3863        (-[WebHTMLView selectionImageRect]):
3864
38652014-02-08  Dan Bernstein  <mitz@apple.com>
3866
3867        Remove use of PLATFORM(MAC) from WebKit/mac
3868        https://bugs.webkit.org/show_bug.cgi?id=128476
3869
3870        Reviewed by Anders Carlsson.
3871
3872        * WebCoreSupport/WebFrameLoaderClient.h:
3873        * WebCoreSupport/WebSystemInterface.mm:
3874        (InitWebCoreSystemInterface):
3875
38762014-02-08  Dan Bernstein  <mitz@apple.com>
3877
3878        Remove client-drawn highlights (-webkit-highlight, WebHTMLHighlighter)
3879        https://bugs.webkit.org/show_bug.cgi?id=128456
3880
3881        Reviewed by Anders Carlsson.
3882
3883        * WebCoreSupport/WebChromeClient.h:
3884        * WebCoreSupport/WebChromeClient.mm: Removed customHighlightRect and paintCustomHighlight.
3885        * WebView/WebHTMLView.mm:
3886        (-[WebHTMLViewPrivate dealloc]): Removed highlighters ivar.
3887        (-[WebHTMLViewPrivate clear]): Ditto.
3888        * WebView/WebHTMLViewInternal.h: Removed declaration.
3889        * WebView/WebHTMLViewPrivate.h: Removed WebHTMLHighlighter protocol and method declarations.
3890
38912014-02-08  Dan Bernstein  <mitz@apple.com>
3892
3893        iOS build fix after r163712.
3894
3895        * WebCoreSupport/WebEditorClient.h:
3896        * WebCoreSupport/WebEditorClient.mm:
3897
38982014-02-08  Darin Adler  <darin@apple.com>
3899
3900        Change TextIterator to use StringView, preparing to wean it from deprecatedCharacters
3901        https://bugs.webkit.org/show_bug.cgi?id=128233
3902
3903        Reviewed by Anders Carlsson.
3904
3905        * WebCoreSupport/WebEditorClient.h: Made most data members private. Moved inlines
3906        for iOS out of the class definition. Fixed formatting. Added missing virtual keyword.
3907        Changed interfaces to use StringView.
3908
3909        * WebCoreSupport/WebEditorClient.mm:
3910        (WebEditorClient::checkTextOfParagraph): Use the new StringView::createNSStringWithoutCopying
3911        function instead of a similar function that was local in this file.
3912        (WebEditorClient::ignoreWordInSpellDocument): Tweaked formatting.
3913        (WebEditorClient::checkSpellingOfString): Changed to take a StringView.
3914        (WebEditorClient::checkGrammarOfString): Ditto.
3915
3916        * WebView/WebTextIterator.mm:
3917        (-[WebTextIterator currentTextPointer]): Call TextIterator::deprecatedTextIteratorCharacters.
3918        (-[WebTextIterator currentText]): Convert a the text to an NSString with TextIterator::text
3919        instead of with TextIterator::characters/length.
3920
39212014-02-07  Gavin Barraclough  <barraclough@apple.com>
3922
3923        Remove isInitialState flag from Page::setViewState
3924        https://bugs.webkit.org/show_bug.cgi?id=128428
3925
3926        Reviewed by Sam Weinig.
3927
3928        * WebView/WebView.mm:
3929        (-[WebView _commonInitializationWithFrameName:groupName:]):
3930        (-[WebView _updateVisibilityState]):
3931        (-[WebView _setIsVisible:]):
3932        (-[WebView _setVisibilityState:isInitialState:]):
3933        (-[WebView _windowWillOrderOnScreen:]):
3934        (-[WebView _windowWillOrderOffScreen:]):
3935            - don't pass isInitialState to setViewState.
3936
39372014-02-06  Filip Pizlo  <fpizlo@apple.com>
3938
3939        More FTL build scaffolding
3940        https://bugs.webkit.org/show_bug.cgi?id=128330
3941
3942        Reviewed by Geoffrey Garen.
3943
3944        * Configurations/FeatureDefines.xcconfig:
3945
39462014-02-07  Dan Bernstein  <mitz@apple.com>
3947
3948        iOS build fix.
3949
3950        * Misc/WebElementDictionary.mm:
3951        (+[WebElementDictionary initializeLookupTable]):
3952        (-[WebElementDictionary _image]):
3953        (-[WebElementDictionary _imageRect]):
3954
39552014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
3956
3957        Web Inspector: Add Console support to JSContext Inspection
3958        https://bugs.webkit.org/show_bug.cgi?id=127941
3959
3960        Reviewed by Geoffrey Garen.
3961
3962        * WebCoreSupport/WebChromeClient.h:
3963        * WebCoreSupport/WebChromeClient.mm:
3964        (stringForMessageSource):
3965        (stringForMessageLevel):
3966        (WebChromeClient::addMessageToConsole):
3967
39682014-02-05  Gavin Barraclough  <barraclough@apple.com>
3969
3970        Change Page, FocusController to use ViewState
3971        https://bugs.webkit.org/show_bug.cgi?id=126533
3972
3973        Reviewed by Tim Horton.
3974
3975        These classes currently maintain a set of separate fields to represent the view state;
3976        combine these into a single field, and allow WebPage to send the combined update rather
3977        than individual changes.
3978
3979        Maintain existing interface for WebKit1 clients.
3980
3981        * WebView/WebView.mm:
3982        (-[WebView _windowWillOrderOnScreen:]):
3983        (-[WebView _windowWillOrderOffScreen:]):
3984            - remove calls to FocusController::setContentIsVisible, these are redundant
3985              (this is handled when page visibility is set).
3986
39872014-02-05  Andreas Kling  <akling@apple.com>
3988
3989        Remove ENABLE(DIRECTORY_UPLOAD).
3990        <https://webkit.org/b/128275>
3991
3992        Rubber-stamped by Ryosuke Niwa.
3993
3994        * Configurations/FeatureDefines.xcconfig:
3995
39962014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
3997
3998        Remove ENABLE(SVG) guards
3999        https://bugs.webkit.org/show_bug.cgi?id=127991
4000
4001        Reviewed by Sam Weinig.
4002
4003        * Configurations/FeatureDefines.xcconfig:
4004
40052014-02-04  Andreas Kling  <akling@apple.com>
4006
4007        Remove <iframe seamless> support.
4008        <https://webkit.org/b/128213>
4009
4010        Rubber-stamped by Antti Koivisto.
4011
4012        * Configurations/FeatureDefines.xcconfig:
4013        * WebView/WebPreferenceKeysPrivate.h:
4014        * WebView/WebPreferences.mm:
4015        * WebView/WebPreferencesPrivate.h:
4016        * WebView/WebView.mm:
4017        (-[WebView _preferencesChanged:]):
4018
40192014-02-03  Dean Jackson  <dino@apple.com>
4020
4021        Feature flag for shape-inside
4022        https://bugs.webkit.org/show_bug.cgi?id=128001
4023
4024        Reviewed by Simon Fraser.
4025
4026        Add CSS_SHAPE_INSIDE flag.
4027
4028        * Configurations/FeatureDefines.xcconfig:
4029
40302014-01-31  Ryosuke Niwa  <rniwa@webkit.org>
4031
4032        Remove inline member functions of FrameSelection that access m_selection
4033        https://bugs.webkit.org/show_bug.cgi?id=127986
4034
4035        Reviewed by Enrica Casucci.
4036
4037        * WebView/WebFrame.mm:
4038        (-[WebFrame hasEditableSelection]):
4039        (-[WebFrame selectionAffinity]):
4040        (-[WebFrame getDictationResultRanges:andMetadatas:]):
4041        (-[WebFrame hasRichlyEditableSelection]):
4042        (-[WebFrame focusedNodeHasContent]):
4043        * WebView/WebHTMLView.mm:
4044        (-[WebHTMLView readSelectionFromPasteboard:]):
4045        (-[WebHTMLView _hasSelection]):
4046        (-[WebHTMLView _hasSelectionOrInsertionPoint]):
4047        (-[WebHTMLView _hasInsertionPoint]):
4048        (-[WebHTMLView _isEditable]):
4049        (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
4050        (-[WebHTMLView maintainsInactiveSelection]):
4051        (isTextInput):
4052        (isInPasswordField):
4053        * WebView/WebView.mm:
4054        (-[WebView selectionAffinity]):
4055
40562014-01-31  Tim Horton  <timothy_horton@apple.com>
4057
4058        [wk2] PlatformCALayerRemoteCustom doesn't work on iOS
4059        https://bugs.webkit.org/show_bug.cgi?id=128025
4060        <rdar://problem/15950271>
4061
4062        Reviewed by Simon Fraser.
4063
4064        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
4065        (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
4066        Use the new macro name.
4067
40682014-01-30  David Kilzer  <ddkilzer@apple.com>
4069
4070        Add security-checked cast for WebCore::CachedImage
4071        <http://webkit.org/b/127967>
4072
4073        Reviewed by Darin Adler.
4074
4075        * Misc/WebCache.mm:
4076        (+[WebCache imageForURL:]):
4077        - Use WebCore::toCachedImage().
4078
40792014-01-30  David Kilzer  <ddkilzer@apple.com>
4080
4081        De-virtual-ize CachedResource::isImage()
4082        <http://webkit.org/b/127936>
4083
4084        Reviewed by Andreas Kling.
4085
4086        Also replace explicit type() checks with isImage().
4087
4088        * Misc/WebCache.mm:
4089        (+[WebCache imageForURL:]): Use !isImage().
4090
40912014-01-30  Beth Dakin  <bdakin@apple.com>
4092
4093        https://bugs.webkit.org/show_bug.cgi?id=127371
4094        Explore new API that could be used to help build infinitely scrolling websites
4095        -and corresponding-
4096        <rdar://problem/15244768>
4097
4098        Reviewed by Sam Weinig.
4099
4100        FrameView::scrollPositionChangedViaPlatformWidget() now take two parameters 
4101        representing the old scroll position and the new position.
4102        * WebView/WebHTMLView.mm:
4103        (-[WebHTMLView _frameOrBoundsChanged]):
4104
41052014-01-30  Andrei Bucur  <abucur@adobe.com>
4106
4107        Remove the ACCELERATED_COMPOSITING flag
4108        https://bugs.webkit.org/show_bug.cgi?id=127833
4109
4110        Reviewed by Antti Koivisto.
4111
4112        Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
4113        mandatory.
4114
4115        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
4116        (-[WebHostedNetscapePluginView createPlugin]):
4117        (-[WebHostedNetscapePluginView createPluginLayer]):
4118        * Plugins/WebNetscapePluginView.mm:
4119        (-[WebNetscapePluginView createPlugin]):
4120        (-[WebNetscapePluginView getVariable:value:]):
4121        * Plugins/WebPluginController.mm:
4122        (-[WebPluginController superlayerForPluginView:]):
4123        * WebCoreSupport/WebChromeClient.h:
4124        (WebChromeClient::allowedCompositingTriggers):
4125        * WebCoreSupport/WebChromeClient.mm:
4126        * WebCoreSupport/WebFrameLoaderClient.mm:
4127        (PluginWidgetIOS::detachPluginLayer):
4128        (NetscapePluginWidget::platformLayer):
4129        * WebView/WebClipView.mm:
4130        (-[WebClipView _immediateScrollToPoint:]):
4131        * WebView/WebHTMLView.mm:
4132        (setNeedsDisplayInRect):
4133        (+[WebHTMLViewPrivate initialize]):
4134        (-[WebHTMLViewPrivate clear]):
4135        (-[WebHTMLView _setAsideSubviews]):
4136        (-[WebHTMLView hitTest:]):
4137        (-[WebHTMLView _isUsingAcceleratedCompositing]):
4138        (-[WebHTMLView _compositingLayersHostingView]):
4139        (-[WebHTMLView viewDidMoveToSuperview]):
4140        (-[WebHTMLView drawRect:]):
4141        * WebView/WebHTMLViewInternal.h:
4142        * WebView/WebRenderLayer.mm:
4143        (+[WebRenderLayer compositingInfoForLayer:]):
4144        * WebView/WebView.mm:
4145        (-[WebView _close]):
4146        (-[WebView _setMediaLayer:forPluginView:]):
4147        (-[WebView _postsAcceleratedCompositingNotifications]):
4148        (-[WebView _setPostsAcceleratedCompositingNotifications:]):
4149        (-[WebView _isUsingAcceleratedCompositing]):
4150        (-[WebView _isSoftwareRenderable]):
4151        (-[WebView close]):
4152        * WebView/WebViewData.h:
4153        * WebView/WebViewData.mm:
4154        (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler):
4155        * WebView/WebViewInternal.h:
4156
41572014-01-29  Csaba Osztrogonác  <ossy@webkit.org>
4158
4159        Remove ENABLE(JAVASCRIPT_DEBUGGER) leftovers
4160        https://bugs.webkit.org/show_bug.cgi?id=127845
4161
4162        Reviewed by Joseph Pecoraro.
4163
4164        * Configurations/FeatureDefines.xcconfig:
4165
41662014-01-29  Dan Bernstein  <mitz@apple.com>
4167
4168        Moved linking against common frameworks and a library from the .xcconfig file into the target.
4169
4170        Reviewed by Tim Horton.
4171
4172        * Configurations/WebKit.xcconfig:
4173
41742014-01-29  Ryosuke Niwa  <rniwa@webkit.org>
4175
4176        checkTextOfParagraph releases NSString twice
4177        https://bugs.webkit.org/show_bug.cgi?id=127881
4178        <rdar://problem/15937446>
4179
4180        Reviewed by Anders Carlsson.
4181
4182        textString is released once by an explicit call to release and again by it going out of scope.
4183        Don't do the explicit release.
4184
4185        The bug was spotted by Sam Weinig.
4186
4187        * WebCoreSupport/WebEditorClient.mm:
4188        (WebEditorClient::checkTextOfParagraph):
4189
41902014-01-29  Anders Carlsson  <andersca@apple.com>
4191
4192        Fix build.
4193
4194        * WebView/WebPDFView.mm:
4195        (_applicationInfoForMIMEType):
4196
41972014-01-28  Mark Rowe  <mrowe@apple.com>
4198
4199        <https://webkit.org/b/127767> Disable some deprecation warnings to fix the build.
4200
4201        Reviewed by Ryosuke Niwa.
4202
4203        * WebCoreSupport/PopupMenuMac.mm:
4204        (PopupMenuMac::populate):
4205
42062014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
4207
4208        WebKit1: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
4209        https://bugs.webkit.org/show_bug.cgi?id=127664
4210
4211        Reviewed by Darin Adler.
4212
4213        * Configurations/Base.xcconfig:
4214        * History/BinaryPropertyList.cpp:
4215        (BinaryPropertyListSerializer::appendObjectReference):
4216        (BinaryPropertyListSerializer::startObject):
4217        (BinaryPropertyListSerializer::addAggregateObjectReference):
4218        * WebView/WebPDFView.mm:
4219        (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
4220
42212014-01-27  Andy Estes  <aestes@apple.com>
4222
4223        Scrub WebKit API headers of WTF macros
4224        https://bugs.webkit.org/show_bug.cgi?id=127706
4225
4226        Reviewed by David Kilzer.
4227
4228        * Configurations/FeatureDefines.xcconfig: Added ENABLE_INSPECTOR.
4229        * WebView/WebPreferenceKeysPrivate.h: Changed ENABLE(REMOTE_INSPECTOR)
4230        to !defined(ENABLE_REMOTE_INSPECTOR) || ENABLE_REMOTE_INSPECTOR. We are
4231        in a TARGET_OS_IPHONE block, and ENABLE_REMOTE_INSPECTOR is enabled by
4232        default on iOS, so include this block unless the feature is explicitly
4233        disabled.
4234        * postprocess-headers.sh: Stopped processing ENABLE_IOS_TOUCH_EVENTS
4235        and ENABLE_IOS_GESTURE_EVENTS. These are now defined in DOMEvents.h.
4236
42372014-01-27  Tim Horton  <timothy_horton@apple.com>
4238
4239        Another iOS build fix.
4240
4241        * Misc/WebElementDictionary.mm:
4242        (-[WebElementDictionary _image]):
4243        We were apparently depending on Image::getNSImage() being defined
4244        (yet always returning nullptr) on iOS.
4245
42462014-01-26  David Kilzer  <ddkilzer@apple.com>
4247
4248        Remove duplicate settings for ENABLE(DISK_IMAGE_CACHE)
4249        <http://webkit.org/b/127669>
4250
4251        Reviewed by Joseph Pecoraro.
4252
4253        * WebView/WebPreferences.mm:
4254        (+[WebPreferences initialize]): Remove duplicate code.
4255
42562014-01-24  Andy Estes  <aestes@apple.com>
4257
4258        [iOS] Upstream changes in Tools/DumpRenderTree
4259        https://bugs.webkit.org/show_bug.cgi?id=127412
4260
4261        Reviewed by Simon Fraser.
4262
4263        * Misc/WebCoreStatistics.h: Included CGContext.h.
4264
42652014-01-26  Anders Carlsson  <andersca@apple.com>
4266
4267        Move history item visit count handling to WebKit
4268        https://bugs.webkit.org/show_bug.cgi?id=127659
4269
4270        Reviewed by Dan Bernstein.
4271
4272        Move code to deal with visit count and visit dates here from WebCore.
4273
4274        * History/HistoryPropertyList.mm:
4275        (HistoryPropertyListWriter::writeHistoryItem):
4276        * History/WebHistoryItem.mm:
4277        (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
4278        (-[WebHistoryItem copyWithZone:]):
4279        (-[WebHistoryItem lastVisitedTimeInterval]):
4280        (-[WebHistoryItem initWithURLString:title:displayTitle:lastVisitedTimeInterval:]):
4281        (-[WebHistoryItem setVisitCount:]):
4282        (-[WebHistoryItem _mergeAutoCompleteHints:]):
4283        (-[WebHistoryItem initFromDictionaryRepresentation:]):
4284        (-[WebHistoryItem _visitedWithTitle:increaseVisitCount:]):
4285        (-[WebHistoryItem _recordInitialVisit]):
4286        (timeToDay):
4287        (-[WebHistoryItem _padDailyCountsForNewVisit:]):
4288        (-[WebHistoryItem _collapseDailyVisitsToWeekly]):
4289        (-[WebHistoryItem _recordVisitAtTime:increaseVisitCount:]):
4290        (-[WebHistoryItem _setLastVisitedTimeInterval:]):
4291        * History/WebHistoryItemInternal.h:
4292
42932014-01-26  Anders Carlsson  <andersca@apple.com>
4294
4295        Fix build.
4296
4297        Pass a WebHistoryItem to writeHistoryItem so we can extract _lastVisitWasHTTPNonGet from it.
4298
4299        * History/HistoryPropertyList.h:
4300        * History/HistoryPropertyList.mm:
4301        (HistoryPropertyListWriter::HistoryPropertyListWriter):
4302        (HistoryPropertyListWriter::buffer):
4303        (HistoryPropertyListWriter::releaseData):
4304        (HistoryPropertyListWriter::writeObjects):
4305        (HistoryPropertyListWriter::writeHistoryItem):
4306        * History/WebHistory.mm:
4307        (WebHistoryWriter::writeHistoryItems):
4308        * History/WebHistoryItem.mm:
4309
43102014-01-26  Anders Carlsson  <andersca@apple.com>
4311
4312        Move lastVisitWasHTTPNonGet out to WebHistoryItem
4313        https://bugs.webkit.org/show_bug.cgi?id=127657
4314
4315        Reviewed by Dan Bernstein.
4316
4317        Keep track of _lastVisitWasHTTPNonGet inside WebHistoryItem.
4318
4319        * History/WebHistory.mm:
4320        (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]):
4321        Set entry->_private->_lastVisitWasHTTPNonGet.
4322
4323        * History/WebHistoryItem.h:
4324        Change @private to @package so we can get at WebHistoryItemPrivate from WebHistory.
4325
4326        * History/WebHistoryItem.mm:
4327        (-[WebHistoryItem copyWithZone:]):
4328        Assign _private->_lastVisitWasHTTPNonGet.
4329
4330        (-[WebHistoryItem initFromDictionaryRepresentation:]):
4331        Set _private->_lastVisitWasHTTPNonGet.
4332
4333        * History/WebHistoryItemInternal.h:
4334        Move WebHistoryItemPrivate interface here.
4335
43362014-01-26  Anders Carlsson  <andersca@apple.com>
4337
4338        Turn WebHistoryItemPrivate back into a real Objective-C class
4339        https://bugs.webkit.org/show_bug.cgi?id=127653
4340
4341        Reviewed by Sam Weinig.
4342
4343        This is a first step towards moving some history specific code from WebCore::HistoryItem back into WebKit.
4344
4345        * History/WebHistoryItem.mm:
4346        (-[WebHistoryItem dealloc]):
4347        (-[WebHistoryItem finalize]):
4348        (-[WebHistoryItem initWithWebCoreHistoryItem:]):
4349
43502014-01-25  Sam Weinig  <sam@webkit.org>
4351
4352        Remove unused support for DRAGGABLE_REGION
4353        https://bugs.webkit.org/show_bug.cgi?id=127642
4354
4355        Reviewed by Simon Fraser.
4356
4357        * Configurations/FeatureDefines.xcconfig:
4358
43592014-01-25  Anders Carlsson  <andersca@apple.com>
4360
4361        Remove an unused FrameLoaderClient function
4362        https://bugs.webkit.org/show_bug.cgi?id=127628
4363
4364        Reviewed by Andreas Kling.
4365
4366        * WebCoreSupport/WebFrameLoaderClient.h:
4367        * WebCoreSupport/WebFrameLoaderClient.mm:
4368
43692014-01-25  Anders Carlsson  <andersca@apple.com>
4370
4371        Build fix.
4372
4373        * WebView/WebViewData.h:
4374
43752014-01-25  Anders Carlsson  <andersca@apple.com>
4376
4377        Get rid of BackForwardController::isActive()
4378        https://bugs.webkit.org/show_bug.cgi?id=127604
4379
4380        Reviewed by Sam Weinig.
4381
4382        * WebCoreSupport/WebFrameLoaderClient.mm:
4383        (WebFrameLoaderClient::canCachePage):
4384        Move isActive logic here.
4385
43862014-01-24  Anders Carlsson  <andersca@apple.com>
4387
4388        Remove back/forward list related functions from Page
4389        https://bugs.webkit.org/show_bug.cgi?id=127596
4390
4391        Reviewed by Andreas Kling.
4392
4393        * WebView/WebFrameView.mm:
4394        (-[WebFrameView keyDown:keyDown:]):
4395        * WebView/WebView.mm:
4396        (-[WebView _loadBackForwardListFromOtherView:]):
4397        (-[WebView initWithCoder:]):
4398        (-[WebView encodeWithCoder:]):
4399        (-[WebView backForwardList]):
4400        (-[WebView setMaintainsBackForwardList:]):
4401        (-[WebView goBack]):
4402        (-[WebView goForward]):
4403        (-[WebView canGoBack]):
4404        (-[WebView canGoForward]):
4405
44062014-01-24  Anders Carlsson  <andersca@apple.com>
4407
4408        Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
4409        https://bugs.webkit.org/show_bug.cgi?id=127571
4410
4411        Reviewed by Antti Koivisto.
4412
4413        * WebView/WebView.mm:
4414        (-[WebView _preferencesChanged:]):
4415        Convert the layout interval to std::chrono::milliseconds.
4416
44172014-01-24  Zan Dobersek  <zdobersek@igalia.com>
4418
4419        Move HistoryItem to std::unique_ptr
4420        https://bugs.webkit.org/show_bug.cgi?id=127275
4421
4422        Reviewed by Darin Adler.
4423
4424        * History/WebHistoryItem.mm: The Vector object that's passed to HistoryItem::setRedirectURLs
4425        should now be handled by std::unique_ptr and passed on through move semantics.
4426        (-[WebHistoryItem initFromDictionaryRepresentation:]):
4427
44282014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
4429
4430        Move RegularExpression into JavaScriptCore for inspector
4431        https://bugs.webkit.org/show_bug.cgi?id=127526
4432
4433        Reviewed by Geoffrey Garen.
4434
4435        * WebView/WebHTMLRepresentation.mm:
4436
44372014-01-23  Benjamin Poulain  <bpoulain@apple.com>
4438
4439        Remote Inspector uses the Page pointer before the page is created on iOS
4440        https://bugs.webkit.org/show_bug.cgi?id=127534
4441
4442        Reviewed by Joseph Pecoraro.
4443
4444        * WebView/WebView.mm:
4445        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
4446
44472014-01-23  Jon Honeycutt  <jhoneycutt@apple.com>
4448
4449        Assertion failure in WebCore::PseudoElement::didRecalcStyle()
4450        <https://bugs.webkit.org/show_bug.cgi?id=126761>
4451        <rdar://problem/15793540>
4452
4453        Some areas of code were erroneously checking the value of
4454        RenderObject::isImage() rather than RenderObject::isRenderImage()
4455        before casting the object to RenderImage.
4456
4457        This could lead to an assertion failure for RenderListMarkers, which
4458        may return true for isImage(), but are not RenderImages.
4459
4460        Reviewed by Andy Estes.
4461
4462        * Misc/WebNSPasteboardExtras.mm:
4463        (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
4464        Check isRenderImage() rather than isImage() before casting to
4465        RenderImage.
4466
44672014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
4468
4469        Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer
4470        https://bugs.webkit.org/show_bug.cgi?id=127409
4471
4472        Reviewed by Geoffrey Garen.
4473
4474        * WebCoreSupport/WebInspectorClient.mm:
4475        (-[WebInspectorWindowController destroyInspectorView:]):
4476        Include InspectorDisconnectReason.
4477
44782014-01-23  Max Vujovic  <mvujovic@adobe.com>
4479
4480        Remove CSS Custom Filters code and tests
4481        https://bugs.webkit.org/show_bug.cgi?id=127382
4482
4483        Reviewed by Simon Fraser.
4484
4485        * Configurations/FeatureDefines.xcconfig:
4486        * WebView/WebPreferenceKeysPrivate.h:
4487        * WebView/WebPreferences.mm:
4488        (+[WebPreferences initialize]):
4489        * WebView/WebPreferencesPrivate.h:
4490        * WebView/WebView.mm:
4491        (-[WebView _preferencesChanged:]):
4492
44932014-01-22  Myles C. Maxfield  <mmaxfield@apple.com>
4494
4495        Remove CSS3_TEXT_DECORATION define
4496        https://bugs.webkit.org/show_bug.cgi?id=127333
4497
4498        Reviewed by Simon Fraser.
4499
4500        This is required for unprefixing the text-decoration-* CSS properties.
4501
4502        * Configurations/FeatureDefines.xcconfig:
4503
45042014-01-22  Dan Bernstein  <mitz@apple.com>
4505
4506        Build fix for iOS clients of WebUIDelegatePrivate.h.
4507
4508        * WebView/WebUIDelegatePrivate.h: Ensure that ENABLE_DASHBOARD_SUPPORT is defined on iOS.
4509
45102014-01-21  Dan Bernstein  <mitz@apple.com>
4511
4512        Added a method declaration that was missed in r161185.
4513
4514        Reviewed by Sam Weinig.
4515
4516        * WebView/WebViewPrivate.h: Declared -removeVisitedLink:.
4517
45182014-01-21  Commit Queue  <commit-queue@webkit.org>
4519
4520        Unreviewed, rolling out r162452.
4521        http://trac.webkit.org/changeset/162452
4522        https://bugs.webkit.org/show_bug.cgi?id=127366
4523
4524        broke a few tests on all Mac WebKit1 bots (Requested by
4525        thorton on #webkit).
4526
4527        * WebView/WebView.mm:
4528        (-[WebView _windowWillOrderOnScreen:]):
4529        (-[WebView _windowWillOrderOffScreen:]):
4530
45312014-01-21  Gavin Barraclough  <barraclough@apple.com>
4532
4533        Change Page, FocusController to use ViewState
4534        https://bugs.webkit.org/show_bug.cgi?id=126533
4535
4536        Reviewed by Tim Horton.
4537
4538        These classes currently maintain a set of separate fields to represent the view state;
4539        combine these into a single field, and allow WebPage to send the combined update rather
4540        than individual changes.
4541
4542        Maintain existing interface for WebKit1 clients.
4543
4544        * WebView/WebView.mm:
4545        (-[WebView _windowWillOrderOnScreen:]):
4546        (-[WebView _windowWillOrderOffScreen:]):
4547            - remove calls to FocusController::setContentIsVisible, these are redundant
4548              (this is handled when page visibility is set).
4549
45502014-01-20  Jeremy Jones  <jeremyj@apple.com>
4551
4552        Add AVKit fullscreen video interface.
4553        https://bugs.webkit.org/show_bug.cgi?id=126818
4554
4555        Reviewed by Eric Carlson.
4556
4557        * WebCoreSupport/WebChromeClient.h:
4558        * WebCoreSupport/WebChromeClient.mm:
4559        (WebChromeClient::supportsFullscreenForNode):
4560        Enable *FullscreenForNode for HTMLMediaElement for iOS
4561
4562        * WebView/WebPreferenceKeysPrivate.h:
4563        * WebView/WebPreferences.mm:
4564        (+[WebPreferences initialize]):
4565        (-[WebPreferences mediaPlaybackFullscreenAVKit]):
4566        (-[WebPreferences setMediaPlaybackFullscreenAVKit:]):
4567        * WebView/WebPreferencesPrivate.h:
4568        * WebView/WebView.mm:
4569        (-[WebView _preferencesChanged:]):
4570        (-[WebView _enterFullscreenForNode:WebCore::]):
4571        * WebView/WebViewInternal.h:
4572        Add a disabled pref mediaPlaybackFullscreenAVKit.
4573        Use WebVideoFullscreenControllerAVKit on iOS
4574
45752014-01-18  Brian Burg  <bburg@apple.com>
4576
4577        Web Inspector: Page should use std::unique_ptr for InspectorController
4578        https://bugs.webkit.org/show_bug.cgi?id=127068
4579
4580        Reviewed by Joseph Pecoraro.
4581
4582        Convert call sites to use a InspectorController reference.
4583        Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
4584
4585        * WebCoreSupport/WebInspectorClient.mm:
4586        (WebInspectorClient::openInspectorFrontend):
4587        (-[WebInspectorWindowController destroyInspectorView:]):
4588        * WebInspector/WebInspector.mm:
4589        (-[WebInspector showWindow]):
4590        (-[WebInspector isJavaScriptProfilingEnabled]):
4591        (-[WebInspector setJavaScriptProfilingEnabled:]):
4592        (-[WebInspector close:]):
4593        (-[WebInspector evaluateInFrontend:callId:script:]):
4594        * WebInspector/WebNodeHighlighter.mm:
4595        (-[WebNodeHighlighter highlight]):
4596
45972014-01-18  Anders Carlsson  <andersca@apple.com>
4598
4599        Remove ENABLE_THREADED_HTML_PARSER defines everywhere
4600        https://bugs.webkit.org/show_bug.cgi?id=127225
4601
4602        Reviewed by Andreas Kling.
4603
4604        This concludes the removal of over 8.8 million lines of threaded parser code.
4605
4606        * Configurations/FeatureDefines.xcconfig:
4607
46082014-01-17  Anders Carlsson  <andersca@apple.com>
4609
4610        Clean up PageCache classes
4611        https://bugs.webkit.org/show_bug.cgi?id=127202
4612
4613        Reviewed by Andreas Kling.
4614
4615        * WebCoreSupport/WebFrameLoaderClient.mm:
4616        (WebFrameLoaderClient::savePlatformDataToCachedFrame):
4617        (WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
4618
46192014-01-17  Anders Carlsson  <andersca@apple.com>
4620
4621        Remove another unused FrameLoaderClient callback
4622        https://bugs.webkit.org/show_bug.cgi?id=127192
4623
4624        Reviewed by Dan Bernstein.
4625
4626        * WebCoreSupport/WebFrameLoaderClient.h:
4627        * WebCoreSupport/WebFrameLoaderClient.mm:
4628
46292014-01-17  Anders Carlsson  <andersca@apple.com>
4630
4631        Move didPerformFirstNavigation() logic to -[WebView _didCommitLoadForFrame:]
4632        https://bugs.webkit.org/show_bug.cgi?id=127189
4633
4634        Reviewed by Dan Bernstein.
4635
4636        This is a first step towards completely eliminating the didPerformFirstNavigation() client callback.
4637        
4638        * WebCoreSupport/WebFrameLoaderClient.h:
4639        * WebCoreSupport/WebFrameLoaderClient.mm:
4640        Remove didPerformFirstNavigation() implementation.
4641
4642        * WebView/WebView.mm:
4643        (-[WebView _checkDidPerformFirstNavigation]):
4644        Check if we have both a current item and a previous item which indicates that we've navigated once.
4645        The old code was called before there was a current item but since this is called from _didCommitLoadForFrame
4646        we have to check that there's a current item as well.
4647
4648        (-[WebView _didCommitLoadForFrame:]):
4649        Call _didCommitLoadForFrame.
4650
4651        * WebView/WebViewData.h:
4652        Add new ivar.
4653
46542014-01-17  Alexey Proskuryakov  <ap@apple.com>
4655
4656        More iOS build fix.
4657
4658        * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
4659        NSHTTPCookieAcceptPolicyExclusivelyFromMainDocumentDomain is not part of NSHTTPCookieAcceptPolicy enum.
4660
46612014-01-16  Daniel Bates  <dabates@apple.com>
4662
4663        [iOS] MobileSafari build fix. Declare iOS-specific method mainFrameIconURL
4664
4665        For now, add mainFrameIconURL() to WebView.h. We should further investigate its
4666        usage and API/SPI status.
4667
4668        * WebView/WebView.h:
4669
46702014-01-16  Alexey Proskuryakov  <ap@apple.com>
4671
4672        [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
4673        https://bugs.webkit.org/show_bug.cgi?id=127139
4674
4675        Reviewed by Brady Eidson.
4676
4677        * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
4678        Handle the new case.
4679
46802014-01-16  Daniel Bates  <dabates@apple.com>
4681
4682        [iOS] Fix UIKit build warning about undefined macro ENABLE_NETSCAPE_PLUGIN_API
4683
4684        * WebView/WebFramePrivate.h: Wrap use of ENABLE_NETSCAPE_PLUGIN_API in TARGET_OS_IPHONE.
4685
46862014-01-16  Anders Carlsson  <andersca@apple.com>
4687
4688        Change all uses of FINAL to final now that all our compilers support it
4689        https://bugs.webkit.org/show_bug.cgi?id=127142
4690
4691        Reviewed by Benjamin Poulain.
4692
4693        * WebCoreSupport/WebUserMediaClient.h:
4694        * WebView/WebScriptDebugger.h:
4695
46962014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
4697
4698        Remove workaround for compilers not supporting explicit override control
4699        https://bugs.webkit.org/show_bug.cgi?id=127111
4700
4701        Reviewed by Anders Carlsson.
4702
4703        Now all compilers support explicit override control, this workaround can be removed.
4704
4705        * Storage/WebDatabaseManagerClient.h:
4706        * Storage/WebStorageTrackerClient.h:
4707        * WebCoreSupport/WebAlternativeTextClient.h:
4708        * WebCoreSupport/WebChromeClient.h:
4709        * WebCoreSupport/WebContextMenuClient.h:
4710        * WebCoreSupport/WebDeviceOrientationClient.h:
4711        * WebCoreSupport/WebDragClient.h:
4712        * WebCoreSupport/WebEditorClient.h:
4713        * WebCoreSupport/WebFrameLoaderClient.h:
4714        * WebCoreSupport/WebFrameNetworkingContext.h:
4715        * WebCoreSupport/WebGeolocationClient.h:
4716        * WebCoreSupport/WebIconDatabaseClient.h:
4717        * WebCoreSupport/WebInspectorClient.h:
4718        * WebCoreSupport/WebNotificationClient.h:
4719        * WebCoreSupport/WebPlatformStrategies.h:
4720        * WebCoreSupport/WebProgressTrackerClient.h:
4721        * WebCoreSupport/WebUserMediaClient.h:
4722        * WebView/WebScriptDebugger.h:
4723        * WebView/WebViewData.h:
4724
47252014-01-16  Andy Estes  <aestes@apple.com>
4726
4727        [iOS] Fix build issues with exported headers
4728
4729        * DOM/WebDOMOperationsPrivate.h: Changed PLATFORM(IOS) to
4730        TARGET_OS_IPHONE.
4731        * MigrateHeaders.make: Excluded WAKScrollView.h from normal replacement
4732        rules so that WebCoreFrameScrollView won't inadvertently get changed to
4733        WebKitFrameScrollView.
4734        * Plugins/WebPlugin.h: Moved contents of WebPluginPrivate.h to here in
4735        order to maintain source compatibility.
4736        * Plugins/WebPluginController.mm: Removed an import of WebPluginPrivate.h.
4737        * Plugins/WebPluginPrivate.h: Removed.
4738        * Storage/WebDatabaseManagerPrivate.h: Replaced ENABLE(SQL_DATABASE)
4739        with ENABLE_SQL_DATABASE.
4740        * WebView/WebViewPrivate.h: Added declaration of
4741        -[WebView _touchEventRegions] for source compatibility.
4742
47432014-01-15  Benjamin Poulain  <bpoulain@apple.com>
4744
4745        Fix the iOS build after r162114
4746
4747        Unreviewed.
4748
4749        * WebView/WebViewPrivate.h: I forgot to remove the declaration, fix that.
4750
47512014-01-15  Benjamin Poulain  <bpoulain@apple.com>
4752
4753        Move user agent code to WebCore and unify some code between OS X and iOS
4754        https://bugs.webkit.org/show_bug.cgi?id=127080
4755
4756        Reviewed by Sam Weinig.
4757
4758        * WebCoreSupport/WebSystemInterface.mm:
4759        (InitWebCoreSystemInterface):
4760        * WebView/WebView.mm:
4761        (userVisibleWebKitVersionString):
4762        (+[WebView _standardUserAgentWithApplicationName:]):
4763        (-[WebView _setUIWebViewUserAgentWithBuildVersion:]):
4764
47652014-01-15  Joseph Pecoraro  <pecoraro@apple.com>
4766
4767        [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge
4768        https://bugs.webkit.org/show_bug.cgi?id=127069
4769
4770        Reviewed by Timothy Hatcher.
4771
4772        * WebView/WebView.mm:
4773        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
4774        (+[WebView _enableRemoteInspector]):
4775        (+[WebView _disableRemoteInspector]):
4776        (+[WebView _disableAutoStartRemoteInspector]):
4777        (+[WebView _isRemoteInspectorEnabled]):
4778        (+[WebView _hasRemoteInspectorSession]):
4779        (-[WebView allowsRemoteInspection]):
4780        Implement with RemoteInspector.h SPIs.
4781
4782        (-[WebView setAllowsRemoteInspection:]):
4783        (-[WebView setHostApplicationBundleId:name:]):
4784        Still unimplemented, update comment.
4785
4786        (-[WebView _didCommitLoadForFrame:]):
4787        Remove dead path, WebCore now pushes updates on navigations.
4788
4789        * WebView/WebViewData.h:
4790        * WebView/WebViewData.mm:
4791        (-[WebViewPrivate init]):
4792        Remove now unused ivar.
4793
47942014-01-15  Alexey Proskuryakov  <ap@apple.com>
4795
4796        More iOS build fixing.
4797
4798        * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
4799        Removed a now unused local variable.
4800
48012014-01-15  Alexey Proskuryakov  <ap@apple.com>
4802
4803        Build fix for iOS.
4804
4805        * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
4806        Update a remaining call site of _updatePrivateBrowsingStateFram:to:.
4807
48082014-01-15  Alexey Proskuryakov  <ap@apple.com>
4809
4810        Crash when multiple WebView instances have different PrivateBrowsing settings
4811        https://bugs.webkit.org/show_bug.cgi?id=127019
4812
4813        * WebView/WebPreferences.mm: (-[WebPreferences _updatePrivateBrowsingStateTo:]):
4814        Added a null check to fix Safari crash on startup when extensions are enabled.
4815
48162014-01-15  Alexey Proskuryakov  <ap@apple.com>
4817
4818        Crash when multiple WebView instances have different PrivateBrowsing settings
4819        https://bugs.webkit.org/show_bug.cgi?id=127019
4820
4821        Reviewed by Sam Weinig.
4822
4823        * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
4824        browsing session simply because one preferences object doesn't use private browsing.
4825        There could be others that do.
4826
4827        * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
4828        browsing, and only delete the private session when there are none any more.
4829
48302014-01-15  David Kilzer  <ddkilzer@apple.com>
4831
4832        [iOS] Missing RenderObject::style() symbol in WebDOMOperations.mm
4833
4834        Fixes the following linker error:
4835
4836            Undefined symbols for architecture x86_64:
4837              "__ZNK7WebCore12RenderObject5styleEv", referenced from:
4838                  -[DOMNode(WebDOMNodeOperations) isHorizontalWritingMode] in WebDOMOperations.o
4839
4840        * DOM/WebDOMOperations.mm: Include RenderElement.h instead of
4841        RenderObject.h since the inline RenderObject::style() method
4842        moved to the former header.
4843
48442014-01-15  Commit Queue  <commit-queue@webkit.org>
4845
4846        Unreviewed, rolling out r162054.
4847        http://trac.webkit.org/changeset/162054
4848        https://bugs.webkit.org/show_bug.cgi?id=127053
4849
4850        Causes assertion failures in DumpRenderTree (Requested by ap
4851        on #webkit).
4852
4853        * WebView/WebPreferences.mm:
4854        (-[WebPreferences initWithIdentifier:sendChangeNotification:initWithIdentifier:]):
4855        (-[WebPreferences initWithCoder:]):
4856        (+[WebPreferences standardPreferences]):
4857        (-[WebPreferences dealloc]):
4858        (-[WebPreferences setPrivateBrowsingEnabled:]):
4859        (-[WebPreferences _invalidateCachedPreferences]):
4860        * WebView/WebView.mm:
4861        (-[WebView _preferencesChanged:]):
4862
48632014-01-14  Alexey Proskuryakov  <ap@apple.com>
4864
4865        Crash when multiple WebView instances have different PrivateBrowsing settings
4866        https://bugs.webkit.org/show_bug.cgi?id=127019
4867
4868        Reviewed by Sam Weinig.
4869
4870        * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
4871        browsing session simply because one preferences object doesn't use private browsing.
4872        There could be others that do.
4873
4874        * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
4875        browsing, and only delete the private session when there are none any more.
4876
48772014-01-14  Simon Fraser  <simon.fraser@apple.com>
4878
4879        Fix the iOS build after r162034.
4880
4881        * WebCoreSupport/WebProgressTrackerClient.mm:
4882        * WebView/WebView.mm:
4883        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
4884
48852014-01-14  Mark Rowe  <mrowe@apple.com>
4886
4887        Stop cmp from spewing useless info during postprocess-headers.sh.
4888
4889        * postprocess-headers.sh: Pass -s to silence cmp since we only care about the
4890        exit status.
4891
48922014-01-14  Joseph Pecoraro  <pecoraro@apple.com>
4893
4894        [iOS] Crash in NavigatorBase::vendor loading apple.com
4895        https://bugs.webkit.org/show_bug.cgi?id=127028
4896
4897        Reviewed by Daniel Bates.
4898
4899        Fill in iOS WebKitSystemInterface functions.
4900
4901        * WebCoreSupport/WebSystemInterface.mm:
4902        (InitWebCoreSystemInterface):
4903
49042014-01-14  Anders Carlsson  <andersca@apple.com>
4905
4906        Create separate progress tracker clients
4907        https://bugs.webkit.org/show_bug.cgi?id=127025
4908
4909        Reviewed by Sam Weinig.
4910
4911        * WebCoreSupport/WebFrameLoaderClient.h:
4912        * WebCoreSupport/WebFrameLoaderClient.mm:
4913        * WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
4914        * WebCoreSupport/WebProgressTrackerClient.mm: Added.
4915        (WebProgressTrackerClient::WebProgressTrackerClient):
4916        (WebProgressTrackerClient::progressTrackerDestroyed):
4917        (WebProgressTrackerClient::willChangeEstimatedProgress):
4918        (WebProgressTrackerClient::didChangeEstimatedProgress):
4919        (WebProgressTrackerClient::progressStarted):
4920        (WebProgressTrackerClient::progressEstimateChanged):
4921        (WebProgressTrackerClient::progressFinished):
4922        * WebView/WebView.mm:
4923        (-[WebView _commonInitializationWithFrameName:groupName:]):
4924        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
4925
49262014-01-14  Dean Jackson  <dino@apple.com>
4927
4928        Correct grave mistake in updating the pbxproj file rather than xcconfig.
4929
4930        * Configurations/WebKit.xcconfig:
4931
49322014-01-14  Simon Fraser  <simon.fraser@apple.com>
4933
4934        #define ENABLE_DASHBOARD_SUPPORT for iOS.
4935
4936        * WebView/WebViewPrivate.h:
4937
49382014-01-14  Simon Fraser  <simon.fraser@apple.com>
4939
4940        Clean up exports and headers for iOS.
4941        
4942        Need to export WebArchivePboardType on Mac and iOS.
4943
4944        * WebKit.exp:
4945        * WebKit.mac.exp:
4946
49472014-01-14  Simon Fraser  <simon.fraser@apple.com>
4948
4949        Fix header availability checks on iOS
4950        https://bugs.webkit.org/show_bug.cgi?id=127016
4951
4952        Reviewed by Andy Estes.
4953
4954        Make DOMTouch* and DOMGesture* headers public headers on iOS,
4955        and fix MigrateHeaders.make to skip availability checks when
4956        building for iOS.
4957
4958        * MigrateHeaders.make:
4959
49602014-01-14  Simon Fraser  <simon.fraser@apple.com>
4961
4962        Need to #import <WebCore/QuickLook.h>.
4963
4964        * WebView/WebDataSource.mm:
4965
49662014-01-14  Daniel Bates  <dabates@apple.com>
4967
4968        [iOS] Enable QuickLook
4969        https://bugs.webkit.org/show_bug.cgi?id=126954
4970
4971        Reviewed by David Kilzer.
4972
4973        Remove empty implementation for quickLookContentForURL: since we always enable QuickLook on iOS.
4974
4975        * WebView/WebView.mm:
4976        (-[WebView quickLookContentForURL:]):
4977
49782014-01-14  Dean Jackson  <dino@apple.com>
4979
4980        Move some Mac-only exports to WebKit.mac.exp for iOS build.
4981
4982        * WebKit.exp:
4983        * WebKit.mac.exp:
4984
49852014-01-14  Simon Fraser  <simon.fraser@apple.com>
4986
4987        Move some Mac-only exports to WebKit.mac.exp for iOS build.
4988
4989        * WebKit.exp:
4990        * WebKit.mac.exp:
4991
49922014-01-14  Simon Fraser  <simon.fraser@apple.com>
4993
4994        Fix iOS WK1 linking.
4995
4996        * Configurations/WebKit.xcconfig: We do need WebOpenPanelResultListener
4997        on iOS.
4998        * WebCoreSupport/WebOpenPanelResultListener.mm: Need <WebCore/Icon.h>
4999
50002014-01-14  Simon Fraser  <simon.fraser@apple.com>
5001
5002        iOS build fixing: link WebKit against Security.framework on iOS.
5003
5004        * Configurations/WebKit.xcconfig:
5005
50062014-01-14  Dean Jackson  <dino@apple.com>
5007
5008        [WK1] Allow generated export files on iOS
5009        https://bugs.webkit.org/show_bug.cgi?id=127008
5010
5011        Reviewed by Simon Fraser.
5012
5013        Add a new Mac-only symbol file.
5014
5015        * WebKit.exp: To begin, move the WebIcon* into the Mac-specific exports.
5016        * WebKit.mac.exp: Added. New file holds Mac-only symbols.
5017
50182014-01-14  Brian J. Burg  <burg@cs.washington.edu>
5019
5020        Add ENABLE(WEB_REPLAY) feature flag to the build system
5021        https://bugs.webkit.org/show_bug.cgi?id=126949
5022
5023        Reviewed by Joseph Pecoraro.
5024
5025        * Configurations/FeatureDefines.xcconfig:
5026
50272014-01-13  Simon Fraser  <simon.fraser@apple.com>
5028
5029        Fix the Mac build. WebViewPrivate.h declares quickLookContentForURL:
5030        for iOS, but the implementation conditionalizes on USE(QUICK_LOOK),
5031        which we are confused about.
5032
5033        * WebView/WebView.mm:
5034        (-[WebView quickLookContentForURL:]):
5035        * WebView/WebViewPrivate.h:
5036
50372014-01-13  Simon Fraser  <simon.fraser@apple.com>
5038
5039        Fix the remaining compiler errors in iOS WK1.
5040
5041        * WebView/WebFrame.mm:
5042        (vectorForDictationPhrasesArray): Need this function on iOS.
5043        (-[WebFrame setSelectedDOMRange:affinity:closeTyping:]): We're already inside
5044        a huge if PLATFORM(IOS) block.
5045        (-[WebFrame resetTextAutosizingBeforeLayout]): Document now exposes RenderView.
5046        * WebView/WebFrameInternal.h: Declare vectorForDictationPhrasesArray() (not a good place for it!)
5047        * WebView/WebView.mm: #import cleanup for iOS.
5048        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Declare autoStartRemoteInspector
5049        here but this needs cleaning up (<rdar://problem/15810991>).
5050        (-[WebView setHostApplicationBundleId:name:]): No [WebView sharedWebInspectorServer] any more.
5051        (-[WebView _didCommitLoadForFrame:]): Ditto.
5052        * WebView/WebViewData.h: Add allowsRemoteInspection.
5053        * WebView/WebViewData.mm: Initialize allowsRemoteInspection
5054        (-[WebViewPrivate init]):
5055        * WebView/WebViewPrivate.h: Fumbled #ifdef.
5056
50572014-01-13  Simon Fraser  <simon.fraser@apple.com>
5058
5059        More work towards getting iOS WK1 building.
5060
5061        * DOM/WebDOMOperations.mm: Need RenderObject.h.
5062        * DOM/WebDOMOperationsPrivate.h:
5063        * History/WebBackForwardList.mm: Need Foundation/NSGeometry.h for NSRect
5064        (-[WebBackForwardList dictionaryRepresentation]): Fix array iteration to match
5065        other code.
5066        * Misc/WebIconDatabase.h: #ifdef out functions that return NSImages.
5067        * Plugins/WebPluginController.mm: Need <WebCore/AudioSession.h>
5068        * WebCoreSupport/WebFrameLoaderClient.mm:
5069        (WebFrameLoaderClient::transitionToCommittedForNewPage): Some new code to
5070        handle the error case.
5071        * WebView/WebFrameView.mm: Avoid including some headers which pull in AppKit classes.
5072        * WebView/WebHTMLView.mm: Ditto.
5073        (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): Handle
5074        different return type of createDragImageForSelection().
5075        * WebView/WebPolicyDelegatePrivate.h:
5076        * WebView/WebPreferences.mm: <WebCore/AudioSession.h> and <AudioToolbox/AudioSession.h>
5077
50782014-01-13  Daniel Bates  <dabates@apple.com>
5079
5080        [iOS] Remove duplicate inclusions of header WAKView.h
5081        following <http://trac.webkit.org/changeset/161910>
5082
5083        * WebView/WebFrameView.h:
5084        * WebView/WebHTMLView.h:
5085
50862014-01-13  Simon Fraser  <simon.fraser@apple.com>
5087
5088        Various iOS WebKit1 build fixes.
5089
5090        * Configurations/WebKit.xcconfig: Add more Mac-only files
5091        to the excluded files list for iOS.
5092        * DefaultDelegates/WebDefaultUIDelegate.m: Don't include WebJavaScriptTextInputPanel.h
5093        on iOS
5094        * History/WebHistory.h: NSCalendarDate doesn't exist on iOS.
5095        * Misc/WebDownload.h: Need WAKAppKitStubs.h
5096        * Misc/WebNSViewExtras.m: No WebNSPasteboardExtras on iOS
5097        * Storage/WebDatabaseManagerClient.mm: Need DatabaseTracker.h, no harm
5098        in including it for all platforms.
5099        * WebCoreSupport/WebEditorClient.h: Remove useless comment.
5100        * WebCoreSupport/WebEditorClient.mm:
5101        (nsStringWithoutCopying): Moved
5102        (WebEditorClient::checkTextOfParagraph): Modernized.
5103        * WebInspector/WebNodeHighlightView.mm: Need FloatQuad.h.
5104        * WebView/WebDataSource.mm: Need WebFrameViewInternal.h
5105        * WebView/WebDocument.h: Needs WAKView.h.
5106        * WebView/WebFrameView.h: Ditto.
5107        * WebView/WebHTMLView.h: Ditto.
5108        * WebView/WebPDFDocumentExtras.mm:
5109        (allScriptsInPDFDocument): No PDFDocument on iOS.
5110        * WebView/WebPolicyDelegate.h:
5111        * WebView/WebView.h: Fix incorrect #if.
5112
51132014-01-13  Daniel Bates  <dabates@apple.com>
5114
5115        [iOS] More build fixes for WebKit
5116
5117        * Configurations/Base.xcconfig: Removed extraneous definition of SUPPORTED_PLATFORMS.
5118        * Configurations/WebKit.xcconfig: Exclude more Mac-specific files when building for iOS:
5119        CarbonUtils.m, CarbonWindowAdapter.mm, CarbonWindowContentView.m, CarbonWindowFrame.m,
5120        HIViewAdapter.m, HIWebView.mm, MailQuirksUserScript.js, OutlookQuirksUserScript.js,
5121        PopupMenuMac.mm, SearchPopupMenuMac.mm, WebClipView.mm, WebInspectorClient.mm,
5122        WebNetscapeContainerCheckContextInfo.mm, WebNetscapeContainerCheckPrivate.mm, WebRenderNode.mm,
5123        WebStringTruncator.mm, and WebTextCompletionController.mm. I haven't verified the Mac-specific
5124        nature of each of these files. We may be able to reduce this list upon further investigation.
5125        * WebView/WebDocument.h: Include header <WebKit/WAKView.h> for definition of WAKView.
5126        * WebView/WebFrameView.h: Ditto.
5127        * WebView/WebUIDelegate.h: Ditto.
5128        * WebView/WebView.h: Ditto.
5129
51302014-01-13  Simon Fraser  <simon.fraser@apple.com>
5131
5132        Include WAKAppKitStubs.h to get NSSelectionAffinity.
5133
5134        * WebView/WebEditingDelegate.h:
5135
51362014-01-13  Simon Fraser  <simon.fraser@apple.com>
5137
5138        DOMTouch* etc should not be public headers on iOS.
5139        
5140        * MigrateHeaders.make:
5141
51422014-01-13  Andy Estes  <aestes@apple.com>
5143
5144        [iOS] Build Fix: switch back to calling postprocess-headers.sh
5145
5146        * postprocess-headers.sh:
5147
51482014-01-13  Zalan Bujtas  <zalan@apple.com>
5149
5150        Enable SUBPIXEL_LAYOUT on Mac
5151        <https://webkit.org/b/126283>
5152
5153        Reviewed by Simon Fraser.
5154
5155        * Configurations/FeatureDefines.xcconfig:
5156
51572014-01-12  Darin Adler  <darin@apple.com>
5158
5159        Add deprecatedCharacters as a synonym for characters and convert most call sites
5160        https://bugs.webkit.org/show_bug.cgi?id=126858
5161
5162        Reviewed by Anders Carlsson.
5163
5164        * History/BinaryPropertyList.cpp:
5165        (BinaryPropertyListSerializer::appendStringObject):
5166        Use deprecatedCharacters instead of characters.
5167
51682014-01-12  Darin Adler  <darin@apple.com>
5169
5170        Add type checking to isEqual methods
5171        https://bugs.webkit.org/show_bug.cgi?id=126862
5172
5173        Reviewed by Anders Carlsson.
5174
5175        * WebCoreSupport/WebSecurityOrigin.mm:
5176        (-[WebSecurityOrigin isEqual:]): Added a FIXME about the lack of a hash method
5177        override. Tweaked formatting.
5178
5179        * WebView/WebDashboardRegion.mm:
5180        (-[WebDashboardRegion isEqual:]): Added type checking on the argument. Added a
5181        FIXME about the lack of a hash method override.
5182
51832014-01-11  Alexey Proskuryakov  <ap@apple.com>
5184
5185        [Mac] [Windows] Stop scheduling network requests in WebCore
5186        https://bugs.webkit.org/show_bug.cgi?id=126789
5187        <rdar://problem/15114727>
5188
5189        Reviewed by Sam Weinig.
5190
5191        * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated
5192        for new WKSI function names.
5193
51942014-01-10  Anders Carlsson  <andersca@apple.com>
5195
5196        Tweak ProgressTrackerClient functions
5197        https://bugs.webkit.org/show_bug.cgi?id=126808
5198
5199        Reviewed by Sam Weinig.
5200
5201        * WebCoreSupport/WebFrameLoaderClient.h:
5202        * WebCoreSupport/WebFrameLoaderClient.mm:
5203        (WebFrameLoaderClient::progressStarted):
5204        (WebFrameLoaderClient::progressEstimateChanged):
5205        (WebFrameLoaderClient::progressFinished):
5206
52072014-01-10  Anders Carlsson  <andersca@apple.com>
5208
5209        Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
5210        https://bugs.webkit.org/show_bug.cgi?id=126801
5211
5212        Reviewed by Sam Weinig.
5213
5214        * WebCoreSupport/WebFrameLoaderClient.h:
5215        * WebView/WebView.mm:
5216        (-[WebView _commonInitializationWithFrameName:groupName:]):
5217
52182014-01-10  David Kilzer  <ddkilzer@apple.com>
5219
5220        Clean up architectures in xcconfig files
5221        <http://webkit.org/b/126794>
5222
5223        Reviewed by Andy Estes.
5224
5225        * Configurations/WebKit.xcconfig: Remove armv6, armv7f, ppc.
5226        - Add new arch.
5227
52282014-01-10  Yongjun Zhang  <yongjun_zhang@apple.com>
5229
5230        Clear unparented tiled layers on memory pressure.
5231        https://bugs.webkit.org/show_bug.cgi?id=126737
5232
5233        Reviewed by Simon Fraser.
5234
5235        * WebView/WebView.mm:
5236        (+[WebView _handleMemoryWarning]): Clear all unparented tiles when under memory pressure.
5237
52382014-01-10  Daniel Bates  <dabates@apple.com>
5239
5240        Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
5241        (https://bugs.webkit.org/show_bug.cgi?id=126698)
5242
5243        Tell Xcode that the supported platforms for all WebCore targets are iOS and OS X.
5244
5245        * Configurations/Base.xcconfig:
5246
52472014-01-09  Andy Estes  <aestes@apple.com>
5248
5249        [iOS] Upstream iOS changes to MigrateHeaders.make
5250        https://bugs.webkit.org/show_bug.cgi?id=126731
5251
5252        Reviewed by David Kilzer.
5253
5254        * MigrateHeaders.make: Migrate iOS-specific headers when building for iOS.
5255
52562014-01-10  Daniel Bates  <dabates@apple.com>
5257
5258        [iOS] Upstream WebCore and Tools miscellaneous changes
5259        https://bugs.webkit.org/show_bug.cgi?id=126698
5260
5261        Reviewed by David Kilzer.
5262
5263        * MigrateHeaders.make:
5264
52652014-01-08  Anders Carlsson  <andersca@apple.com>
5266
5267        Add WTF::StringView and use it for grammar checking
5268        https://bugs.webkit.org/show_bug.cgi?id=126644
5269
5270        Reviewed by Antti Koivisto.
5271
5272        * WebCoreSupport/WebEditorClient.h:
5273        * WebCoreSupport/WebEditorClient.mm:
5274        (WebEditorClient::checkTextOfParagraph):
5275        Update to match the new signature.
5276
5277        (nsStringWithoutCopying):
5278        New function that creates an NSString that references StringView data
5279        without copying the data. (If this function proves to be useful elsewhere, it could
5280        potentially be added to StringView).
5281
52822014-01-02  Andy Estes  <aestes@apple.com>
5283
5284        [iOS] Clean up some exported headers
5285        https://bugs.webkit.org/show_bug.cgi?id=126403
5286
5287        Reviewed by Simon Fraser.
5288
5289        Public header files that are completely excluded on iOS don't need
5290        !TARGET_OS_IPHONE guards since they are already listed in
5291        EXCLUDED_SOURCE_FILE_NAMES.
5292
5293        I also took the opportunity to sort EXCLUDED_SOURCE_FILE_NAMES and to
5294        clean up some #imports.
5295
5296        * Configurations/WebKit.xcconfig:
5297        * Misc/WebCache.h:
5298        * Misc/WebIconDatabasePrivate.h:
5299        * Misc/WebLocalizableStrings.h:
5300        * Misc/WebNSEventExtras.h:
5301        * Misc/WebNSPasteboardExtras.h:
5302        * Misc/WebNSWindowExtras.h:
5303        * Panels/WebPanelAuthenticationHandler.h:
5304        * Plugins/WebPluginsPrivate.h:
5305        * Storage/WebDatabaseManagerPrivate.h:
5306        * WebCoreSupport/WebJavaScriptTextInputPanel.h:
5307        * WebCoreSupport/WebKeyGenerator.h:
5308        * WebCoreSupport/WebSecurityOriginPrivate.h:
5309        * WebView/WebDashboardRegion.h:
5310        * WebView/WebDynamicScrollBarsView.h:
5311        * WebView/WebFrameView.h:
5312        * WebView/WebPreferenceKeysPrivate.h:
5313        * WebView/WebResourceLoadDelegatePrivate.h:
5314        * WebView/WebView.h:
5315
53162014-01-07  Seokju Kwon  <seokju@webkit.org>
5317
5318        Web Inspector: Remove leftover 'device metrics' code
5319        https://bugs.webkit.org/show_bug.cgi?id=126607
5320
5321        Reviewed by Joseph Pecoraro.
5322
5323        * WebKit.order: Update after removing InspectorClient::overrideDeviceMetrics().
5324
53252014-01-02  Andy Estes  <aestes@apple.com>
5326
5327        [iOS] Upstream WebKit support for various features
5328        https://bugs.webkit.org/show_bug.cgi?id=126413
5329
5330        Reviewed by Sam Weinig.
5331
5332        Upstream iOS WebKit changes needed for these features:
5333
5334        - ENABLE(DELETION_UI)
5335        - ENABLE(TOUCH_EVENTS)
5336        - USE(QUICK_LOOK)
5337        - USE(UIKIT_EDITING)
5338        - ENABLE(DISK_IMAGE_CACHE)
5339        - ENABLE(IOS_TEXT_AUTOSIZING)
5340        - ENABLE(ICONDATABASE)
5341        - ENABLE(DASHBOARD_SUPPORT)
5342
5343        * DefaultDelegates/WebDefaultEditingDelegate.m:
5344        * Misc/WebCache.mm:
5345        * WebCoreSupport/WebChromeClient.h:
5346        * WebView/WebDataSource.mm:
5347        (-[WebDataSource dealloc]):
5348        * WebView/WebEditingDelegatePrivate.h:
5349        * WebView/WebFrame.mm:
5350        (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
5351        * WebView/WebHTMLView.mm:
5352        (-[WebHTMLView maintainsInactiveSelection]):
5353        (-[WebHTMLView touch:]):
5354        * WebView/WebPreferences.mm:
5355        (+[WebPreferences initialize]):
5356        * WebView/WebPreferencesPrivate.h:
5357        * WebView/WebView.mm:
5358        (-[WebView _preferencesChanged:]):
5359        (-[WebView _cacheFrameLoadDelegateImplementations]):
5360        (-[WebView quickLookContentForURL:]):
5361        (-[WebView _touchEventRegions]):
5362        * WebView/WebViewPrivate.h:
5363
53642014-01-02  Andy Estes  <aestes@apple.com>
5365
5366        [iOS] Upstream a bug fix for plugin-backed media elements
5367        https://bugs.webkit.org/show_bug.cgi?id=126412
5368
5369        Reviewed by Eric Carlson.
5370
5371        Media elements backed by plug-ins should outlive being removed from the
5372        document, like their native counterparts do.
5373
5374        * Plugins/WebPluginController.h:
5375        * Plugins/WebPluginController.mm:
5376        (-[NSView isMediaPlugInProxyView]):
5377        (-[NSView setIsMediaPlugInProxyView:]):
5378        (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
5379        (-[WebPluginController mediaPlugInProxyViewCreated:]):
5380        (-[WebPluginController destroyPlugin:]):
5381        * WebCoreSupport/WebFrameLoaderClient.mm:
5382        (pluginView):
5383
53842014-01-07  Mark Rowe  <mrowe@apple.com>
5385
5386        <https://webkit.org/b/126562> DOMProgressEvent has unspecified availability
5387
5388        Reviewed by Ryosuke Niwa.
5389
5390        * MigrateHeaders.make: Ensure that public DOM headers do not have unspecified availability.
5391
53922014-01-06  Mark Rowe  <mrowe@apple.com>
5393
5394        Mountain Lion build fix after r161332.
5395
5396        * Carbon/HIWebView.h: Mountain Lion's version of CF_AVAILABLE_MAC doesn't accept a message
5397        argument so remove it.
5398
53992014-01-06  Mark Rowe  <mrowe@apple.com>
5400
5401        <https://webkit.org/b/126499> Move WebKit off the legacy WebKit availability macros
5402
5403        The legacy WebKit availability macros are verbose, confusing, and provide no benefit
5404        over using the system availability macros directly. The original vision was that
5405        they'd serve a cross-platform purpose but that never came to be.
5406
5407        Since WebKit1 is API on OS X but SPI on iOS, some indirection is still needed in the
5408        availability macros to allow the headers to advertise the API as unavailable on OS X
5409        without interfering with the ability to build on iOS. This is achieved by defining
5410        WEBKIT-prefixed versions of the Foundation availability macros that are defined to
5411        their NS-prefixed equivalents. The installed headers are post-processed to map these
5412        macros back to their Foundation equivalents.
5413
5414        Part of <rdar://problem/15512304>.
5415
5416        The OS X version used in the new availability macros is based on the mapping in
5417        JavaScriptCore/WebKitAvailability.h.
5418
5419        Reviewed by Sam Weinig.
5420
5421        * Carbon/CarbonUtils.h:
5422        * Carbon/HIWebView.h:
5423        * MigrateHeaders.make: Migrate WebKitAvailability.h from WebCore as an API header.
5424        * Plugins/WebPlugin.h:
5425        * Plugins/WebPluginViewFactory.h:
5426        * WebView/WebFrameLoadDelegate.h:
5427        * WebView/WebResourceLoadDelegatePrivate.h:
5428        * WebView/WebUIDelegate.h:
5429        * postprocess-headers.sh: Added. Extracted from the Xcode project. Extended to map the
5430        WEBKIT-prefixed macros to their NS-prefixed equivalents on OS X and to remove them on iOS.
5431
54322014-01-04  Zan Dobersek  <zdobersek@igalia.com>
5433
5434        Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
5435        https://bugs.webkit.org/show_bug.cgi?id=126439
5436
5437        Reviewed by Andreas Kling.
5438
5439        Instead of relying on std::pair and std::make_pair symbols being present in the current scope
5440        through the pair and make_pair symbols, the std:: specifier should be used explicitly.
5441
5442        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
5443        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5444        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
5445        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
5446        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
5447        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
5448
54492014-01-02  Gavin Barraclough  <barraclough@apple.com>
5450
5451        Remove WindowIsVisible
5452        https://bugs.webkit.org/show_bug.cgi?id=126270
5453
5454        Reviewed by Tim Horton.
5455
5456        We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
5457        The latter detects that the content is hidden in fewer cases than the former, and as such, the
5458        former is always preferable.
5459
5460        This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
5461        Plugin::windowVisibilityChanged.
5462
5463        * WebView/WebView.mm:
5464        (-[WebView _windowWillOrderOnScreen:]):
5465        (-[WebView _windowWillOrderOffScreen:]):
5466            - rename ContainingWindowIsVisible -> ContentIsVisible.
5467
54682014-01-02  Gavin Barraclough  <barraclough@apple.com>
5469
5470        Merge didMoveOnscreen / page visibility to isVisible
5471        https://bugs.webkit.org/show_bug.cgi?id=126268
5472
5473        Reviewed by Tim Horton.
5474
5475        The onscreen state most closely tracks view visibility (though currently
5476        also tracks a mix of in-window state). Make more consistent, simplify,
5477        and move all animation suspension logic to Page, so it can be controlled
5478        by the PageThrottler.
5479
5480        * WebView/WebView.mm:
5481        (-[WebView _commonInitializationWithFrameName:groupName:]):
5482        (-[WebView _updateVisibilityState]):
5483            - _setVisibilityState:isInitialState: -> _setIsVisibile:isInitialState:.
5484        (-[WebView _setIsVisible:isInitialState:]):
5485            - added.
5486        (-[WebView _setVisibilityState:isInitialState:]):
5487            - setVisibilityState -> setIsVisible/setIsPrerender.
5488        (-[WebView viewWillMoveToWindow:]):
5489        (-[WebView viewDidMoveToWindow]):
5490            - remove redundant calls to willMoveOffscreen/didMoveOnscreen
5491              (this is handled by _updateVisibilityState).
5492
54932013-12-23  Oliver Hunt  <oliver@apple.com>
5494
5495        Refactor PutPropertySlot to be aware of custom properties
5496        https://bugs.webkit.org/show_bug.cgi?id=126187
5497
5498        Reviewed by Antti Koivisto.
5499
5500        Update for new method signatures.
5501
5502        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5503        (WebKit::NetscapePluginInstanceProxy::setProperty):
5504
55052013-12-31  Andy Estes  <aestes@apple.com>
5506
5507        [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
5508        https://bugs.webkit.org/show_bug.cgi?id=125746
5509
5510        Reviewed by David Kilzer.
5511
5512        This is a straight upstreaming of the various PLATFORM(IOS) changes
5513        made to Source/WebKit/ with the following modifications:
5514
5515        - Includes of <Cocoa/Cocoa.h> were generally replaced with an include
5516        of <Foundation/Foundation.h> followed by an include of
5517        <AppKit/AppKit.h> on non-iOS platforms. This assumes that nobody was
5518        relying on <Cocoa/Cocoa.h>'s inclusion of <CoreData/CoreData.h>.
5519
5520        - Includes of <Cocoa/Cocoa.h> and <Foundation/Foundation.h> were
5521        removed from files that include WebKitPrefix.h.
5522
5523        - Instances of 'iPhone (OS)' in comments were replaced with 'iOS', and
5524        other sensitive terms were elided.
5525
5526        - Various PLATFORM(IOS) blocks were simplified. For instance:
5527
5528            #if !PLATFORM(IOS)
5529            ...
5530            #endif
5531            #if PLATFORM(IOS)
5532            ...
5533            #endif
5534
5535        Was simplified to:
5536
5537            #if !PLATFORM(IOS)
5538            ...
5539            #else
5540            ...
5541            #endif
5542
5543        * Configurations/Base.xcconfig:
5544        * Configurations/DebugRelease.xcconfig:
5545        * Configurations/Version.xcconfig:
5546        * Configurations/WebKit.xcconfig:
5547        * Configurations/iOS.xcconfig: Added.
5548        * DOM/WebDOMOperations.mm:
5549        * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
5550        * DefaultDelegates/WebDefaultEditingDelegate.m:
5551        * DefaultDelegates/WebDefaultPolicyDelegate.m:
5552        * DefaultDelegates/WebDefaultUIDelegate.h:
5553        * DefaultDelegates/WebDefaultUIDelegate.m:
5554        * History/WebBackForwardList.mm:
5555        * History/WebHistory.mm:
5556        * History/WebHistoryItem.mm:
5557        * History/WebURLsWithTitles.m:
5558        * Misc/WebCache.mm:
5559        * Misc/WebDownload.mm:
5560        * Misc/WebElementDictionary.mm:
5561        * Misc/WebIconDatabase.mm:
5562        * Misc/WebIconDatabaseInternal.h:
5563        * Misc/WebKitNSStringExtras.mm:
5564        * Misc/WebKitSystemBits.m:
5565        * Misc/WebKitVersionChecks.h:
5566        * Misc/WebKitVersionChecks.m:
5567        * Misc/WebLocalizableStrings.mm:
5568        * Misc/WebNSArrayExtras.h:
5569        * Misc/WebNSArrayExtras.m:
5570        * Misc/WebNSControlExtras.h:
5571        * Misc/WebNSControlExtras.m:
5572        * Misc/WebNSDictionaryExtras.h:
5573        * Misc/WebNSDictionaryExtras.m:
5574        * Misc/WebNSEventExtras.m:
5575        * Misc/WebNSFileManagerExtras.mm:
5576        * Misc/WebNSImageExtras.h:
5577        * Misc/WebNSImageExtras.m:
5578        * Misc/WebNSPasteboardExtras.mm:
5579        * Misc/WebNSPrintOperationExtras.h:
5580        * Misc/WebNSPrintOperationExtras.m:
5581        * Misc/WebNSURLExtras.mm:
5582        * Misc/WebNSViewExtras.m:
5583        * Misc/WebNSWindowExtras.m:
5584        * Panels/WebAuthenticationPanel.h:
5585        * Panels/WebAuthenticationPanel.m:
5586        * Panels/WebPanelAuthenticationHandler.m:
5587        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
5588        * Plugins/WebBasePluginPackage.h:
5589        * Plugins/WebBasePluginPackage.mm:
5590        * Plugins/WebJavaPlugIn.h:
5591        * Plugins/WebPluginContainerCheck.mm:
5592        * Plugins/WebPluginController.h:
5593        * Plugins/WebPluginController.mm:
5594        * Plugins/WebPluginDatabase.mm:
5595        * Plugins/WebPluginPackage.mm:
5596        * Plugins/WebPluginsPrivate.m:
5597        * Storage/WebDatabaseManager.mm:
5598        * Storage/WebDatabaseManagerClient.h:
5599        * Storage/WebDatabaseManagerClient.mm:
5600        * Storage/WebDatabaseManagerInternal.h: Added.
5601        * Storage/WebStorageManager.mm:
5602        * WebCoreSupport/CorrectionPanel.h:
5603        * WebCoreSupport/WebAlternativeTextClient.h:
5604        * WebCoreSupport/WebApplicationCache.mm:
5605        * WebCoreSupport/WebChromeClient.h:
5606        * WebCoreSupport/WebChromeClient.mm:
5607        * WebCoreSupport/WebContextMenuClient.mm:
5608        * WebCoreSupport/WebEditorClient.h:
5609        * WebCoreSupport/WebEditorClient.mm:
5610        * WebCoreSupport/WebFrameLoaderClient.h:
5611        * WebCoreSupport/WebFrameLoaderClient.mm:
5612        * WebCoreSupport/WebFrameNetworkingContext.h:
5613        * WebCoreSupport/WebFrameNetworkingContext.mm:
5614        * WebCoreSupport/WebGeolocationClient.h:
5615        * WebCoreSupport/WebGeolocationClient.mm:
5616        * WebCoreSupport/WebJavaScriptTextInputPanel.m:
5617        * WebCoreSupport/WebKeyGenerator.mm:
5618        * WebCoreSupport/WebNotificationClient.mm:
5619        * WebCoreSupport/WebOpenPanelResultListener.mm:
5620        * WebCoreSupport/WebSecurityOrigin.mm:
5621        * WebCoreSupport/WebSystemInterface.mm:
5622        * WebKitPrefix.h:
5623        * WebView/WebArchive.mm:
5624        * WebView/WebClipView.h:
5625        * WebView/WebDataSource.mm:
5626        * WebView/WebDelegateImplementationCaching.h:
5627        * WebView/WebDelegateImplementationCaching.mm:
5628        * WebView/WebDeviceOrientation.mm:
5629        * WebView/WebDocumentInternal.h:
5630        * WebView/WebDocumentLoaderMac.mm:
5631        * WebView/WebDynamicScrollBarsViewInternal.h:
5632        * WebView/WebFormDelegate.m:
5633        * WebView/WebFrame.mm:
5634        * WebView/WebFrameInternal.h:
5635        * WebView/WebFrameView.mm:
5636        * WebView/WebFullScreenController.h:
5637        * WebView/WebFullScreenController.mm:
5638        * WebView/WebHTMLRepresentation.mm:
5639        * WebView/WebHTMLView.mm:
5640        * WebView/WebHTMLViewInternal.h:
5641        * WebView/WebPDFDocumentExtras.h:
5642        * WebView/WebPDFDocumentExtras.mm:
5643        * WebView/WebPDFRepresentation.h:
5644        * WebView/WebPDFRepresentation.mm:
5645        * WebView/WebPDFView.h:
5646        * WebView/WebPDFView.mm:
5647        * WebView/WebPreferences.mm:
5648        * WebView/WebResource.mm:
5649        * WebView/WebTextCompletionController.h:
5650        * WebView/WebTextIterator.mm:
5651        * WebView/WebView.mm:
5652        * WebView/WebViewData.h:
5653        * WebView/WebViewData.mm:
5654        * WebView/WebViewInternal.h:
5655
56562013-12-25  Commit Queue  <commit-queue@webkit.org>
5657
5658        Unreviewed, rolling out r161033 and r161074.
5659        http://trac.webkit.org/changeset/161033
5660        http://trac.webkit.org/changeset/161074
5661        https://bugs.webkit.org/show_bug.cgi?id=126240
5662
5663        Oliver says that a rollout would be better (Requested by ap on
5664        #webkit).
5665
5666        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5667        (WebKit::NetscapePluginInstanceProxy::setProperty):
5668
56692013-12-23  Oliver Hunt  <oliver@apple.com>
5670
5671        Refactor PutPropertySlot to be aware of custom properties
5672        https://bugs.webkit.org/show_bug.cgi?id=126187
5673
5674        Reviewed by msaboff.
5675
5676        Update for new method signatures.
5677
5678        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5679        (WebKit::NetscapePluginInstanceProxy::setProperty):
5680
56812013-12-23  Lucas Forschler  <lforschler@apple.com>
5682
5683        <rdar://problem/15682948> Update copyright strings
5684
5685        Reviewed by Dan Bernstein.
5686
5687        * Info.plist:
5688
56892013-12-19  Andy Estes  <aestes@apple.com>
5690
5691        Remove WebFilterEvaluator wrappers from WebKitSystemInterface
5692        https://bugs.webkit.org/show_bug.cgi?id=126028
5693
5694        Reviewed by Anders Carlsson.
5695
5696        * WebCoreSupport/WebSystemInterface.mm:
5697        (InitWebCoreSystemInterface): Don't INIT() removed function pointers.
5698
56992013-12-17  Gavin Barraclough  <barraclough@apple.com>
5700
5701        Remove PageVisibilityStateUnloaded
5702        https://bugs.webkit.org/show_bug.cgi?id=125869
5703
5704        Reviewed by Anders Carlsson.
5705
5706        This is not currently supported by WebKit, remove this enum value.
5707        We can always add this back later if/when we add support for this state.
5708
5709        * WebView/WebView.mm:
5710        (core):
5711        (kit):
5712        * WebView/WebViewPrivate.h:
5713            - removed PageVisibilityStateUnloaded/WebPageVisibilityStateUnloade
5714
57152013-12-14  Andy Estes  <aestes@apple.com>
5716
5717        [iOS] Upstream changes to WebKit Public and Private headers
5718        https://bugs.webkit.org/show_bug.cgi?id=125745
5719
5720        Reviewed by Dan Bernstein.
5721
5722        * Configurations/WebKit.xcconfig: Ignore headers that are completely
5723        excluded on iOS. This prevents empty headers from being installed into
5724        the iOS SDK.
5725        * DOM/WebDOMOperationsPrivate.h: Upstream iOS changes.
5726        * History/WebBackForwardListPrivate.h: Ditto.
5727        * History/WebHistoryItem.h: Ditto.
5728        * History/WebHistoryItemPrivate.h: Ditto.
5729        * Misc/WebCache.h: Ditto.
5730        * Misc/WebIconDatabase.h: Ditto.
5731        * Misc/WebIconDatabasePrivate.h: Ditto.
5732        * Misc/WebKitNSStringExtras.h: Ditto.
5733        * Misc/WebLocalizableStrings.h: Ditto.
5734        * Misc/WebNSEventExtras.h: Ditto.
5735        * Misc/WebNSFileManagerExtras.h: Ditto.
5736        * Misc/WebNSPasteboardExtras.h: Ditto.
5737        * Misc/WebNSURLExtras.h: Ditto.
5738        * Misc/WebNSViewExtras.h: Ditto.
5739        * Misc/WebNSWindowExtras.h: Ditto.
5740        * Panels/WebPanelAuthenticationHandler.h: Ditto.
5741        * Plugins/WebPlugin.h: Ditto.
5742        * Plugins/WebPluginContainer.h: Ditto.
5743        * Plugins/WebPluginContainerPrivate.h: Ditto.
5744        * Plugins/WebPluginDatabase.h: Ditto.
5745        * Plugins/WebPluginPrivate.h: Ditto.
5746        * Plugins/WebPluginViewFactory.h: Ditto.
5747        * Plugins/WebPluginsPrivate.h: Ditto.
5748        * Storage/WebDatabaseManagerPrivate.h: Ditto.
5749        * WebCoreSupport/WebApplicationCache.h: Ditto.
5750        * WebCoreSupport/WebJavaScriptTextInputPanel.h: Ditto.
5751        * WebCoreSupport/WebKeyGenerator.h: Ditto.
5752        * WebCoreSupport/WebSecurityOriginPrivate.h: Ditto.
5753        * WebView/WebDashboardRegion.h: Ditto.
5754        * WebView/WebDataSource.h: Ditto.
5755        * WebView/WebDataSourcePrivate.h: Ditto.
5756        * WebView/WebDocument.h: Ditto.
5757        * WebView/WebDocumentPrivate.h: Ditto.
5758        * WebView/WebDynamicScrollBarsView.h: Ditto.
5759        * WebView/WebEditingDelegate.h: Ditto.
5760        * WebView/WebEditingDelegatePrivate.h: Ditto.
5761        * WebView/WebFormDelegate.h: Ditto.
5762        * WebView/WebFrameLoadDelegate.h: Ditto.
5763        * WebView/WebFramePrivate.h: Ditto.
5764        * WebView/WebFrameView.h: Ditto.
5765        * WebView/WebFrameViewPrivate.h: Ditto.
5766        * WebView/WebHTMLRepresentation.h: Ditto.
5767        * WebView/WebHTMLView.h: Ditto.
5768        * WebView/WebHTMLViewPrivate.h: Ditto.
5769        * WebView/WebPolicyDelegate.h: Ditto.
5770        * WebView/WebPreferenceKeysPrivate.h: Ditto.
5771        * WebView/WebPreferences.h: Ditto.
5772        * WebView/WebPreferencesPrivate.h: Ditto.
5773        * WebView/WebRenderLayer.h: Ditto.
5774        * WebView/WebResourceLoadDelegatePrivate.h: Ditto.
5775        * WebView/WebResourcePrivate.h: Ditto.
5776        * WebView/WebUIDelegate.h: Ditto.
5777        * WebView/WebUIDelegatePrivate.h: Ditto.
5778        * WebView/WebView.h: Ditto.
5779        * WebView/WebViewPrivate.h: Ditto.
5780
57812013-12-15  Andy Estes  <aestes@apple.com>
5782
5783        [iOS] Upstream changes to FeatureDefines.xcconfig
5784        https://bugs.webkit.org/show_bug.cgi?id=125742
5785
5786        Reviewed by Dan Bernstein.
5787
5788        * Configurations/FeatureDefines.xcconfig:
5789
57902013-12-14  Andy Estes  <aestes@apple.com>
5791
5792        Unify FeatureDefines.xcconfig
5793        https://bugs.webkit.org/show_bug.cgi?id=125741
5794
5795        Rubber-stamped by Dan Bernstein.
5796
5797        * Configurations/FeatureDefines.xcconfig: Remove a stray space in
5798        FEATURE_DEFINES.
5799
58002013-12-11  Joseph Pecoraro  <pecoraro@apple.com>
5801
5802        Web Inspector: Push More Inspector Required Classes Down into JavaScriptCore
5803        https://bugs.webkit.org/show_bug.cgi?id=125324
5804
5805        Reviewed by Timothy Hatcher.
5806
5807        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
5808        * WebCoreSupport/WebInspectorClient.mm:
5809        * WebView/WebFrame.mm:
5810        * WebView/WebView.mm:
5811
58122013-12-03  Mark Rowe  <mrowe@apple.com>
5813
5814        <https://webkit.org/b/125139> Modernize the WebKit API headers
5815        <rdar://problem/15540175>
5816
5817        This consists of three main changes:
5818        1) Converting the return type of initializer methods to instancetype.
5819        2) Declaring properties rather than getters and setters.
5820        3) Declaring explicitly sized enums.
5821
5822        Changing the declarations from getters and setters to properties also required
5823        updating the headerdoc in a number of places.
5824
5825        Reviewed by Anders Carlsson.
5826
5827        * DOM/WebDOMOperations.h:
5828        * History/WebBackForwardList.h:
5829        * History/WebHistory.h:
5830        * History/WebHistoryItem.h:
5831        * History/WebHistoryItem.mm:
5832        * Plugins/WebPlugin.h:
5833        * Plugins/WebPluginContainer.h:
5834        * WebView/WebArchive.h:
5835        * WebView/WebArchive.mm:
5836        * WebView/WebDataSource.h:
5837        * WebView/WebDataSource.mm:
5838        * WebView/WebEditingDelegate.h:
5839        * WebView/WebFrame.h:
5840        * WebView/WebFrame.mm:
5841        * WebView/WebFrameView.h:
5842        * WebView/WebPolicyDelegate.h:
5843        * WebView/WebPreferences.h:
5844        * WebView/WebPreferences.mm:
5845        (-[WebPreferences cacheModel]): Cast to the enum.
5846        * WebView/WebResource.h:
5847        * WebView/WebResource.mm:
5848        * WebView/WebUIDelegate.h:
5849        * WebView/WebView.h:
5850        * WebView/WebView.mm:
5851        (+[WebView _didSetCacheModel]): Fix the return type.
5852
58532013-12-10  Mark Rowe  <mrowe@apple.com>
5854
5855        <http://webkit.org/b/125556> WebKit doesn't deal with longer bundle versions correctly
5856        <rdar://problem/15634192>
5857
5858        Reviewed by Dan Bernstein.
5859
5860        * WebView/WebView.mm:
5861        (createUserVisibleWebKitVersionString): Strip as many leading digits as is necessary to
5862        bring the major component of the version down to 3 digits.
5863
58642013-12-09  Sam Weinig  <sam@webkit.org>
5865
5866        Fix the build of projects including <WebKit/WebUIDelegatePrivate.h>
5867
5868        Rubber-stamped by Dan Bernstein.
5869
5870        * WebView/WebAllowDenyPolicyListener.h:
5871        Use TARGET_OS_IPHONE rather than PLATFORM(IOS) in an exposed header.
5872
58732013-12-05  Jer Noble  <jer.noble@apple.com>
5874
5875        [MSE] Add a runtime-setting for the MediaSource constructor.
5876        https://bugs.webkit.org/show_bug.cgi?id=125336
5877
5878        Reviewed by Eric Carlson.
5879
5880        Add a private WebPreference which controls the WebCore mediaSourceEnabled setting.
5881
5882        * WebView/WebPreferenceKeysPrivate.h:
5883        * WebView/WebPreferences.mm:
5884        (+[WebPreferences initialize]):
5885        (-[WebPreferences mediaSourceEnabled]):
5886        (-[WebPreferences setMediaSourceEnabled:]):
5887        * WebView/WebPreferencesPrivate.h:
5888        * WebView/WebView.mm:
5889        (-[WebView _preferencesChanged:]):
5890
58912013-12-05  Mark Lam  <mark.lam@apple.com>
5892
5893        C Loop LLINT layout test regressions.
5894        https://bugs.webkit.org/show_bug.cgi?id=125314.
5895
5896        Reviewed by Geoffrey Garen.
5897
5898        The regression was due to the ENABLE_LLINT_C_LOOP flag not being included
5899        in the build of the WebKit and WebKit2 components. As a result, some fields
5900        in JSC::VM were ifdef'ed out in WebCore and JSC, but not in WebKit and
5901        WebKit2. This resulted in VM::m_initializingObjectClass having 2 different
5902        offsets depending on whether it is accessed from WebCore and JSC or from
5903        WebKit and WebKit2, and chaos ensued.
5904
5905        This issue will manifest when we pass --cloop to build-webkit.
5906        The fix is simply to add ENABLE_LLINT_C_LOOP to FEATURE_DEFINES for WebKit
5907        and WebKit2.
5908
5909        * Configurations/FeatureDefines.xcconfig:
5910
59112013-12-04  Brian J. Burg  <burg@cs.washington.edu>
5912
5913        Consolidate various frame snapshot capabilities.
5914        https://bugs.webkit.org/show_bug.cgi?id=124325
5915
5916        Reviewed by Darin Adler.
5917
5918        Use new platform-independent methods instead of Mac methods.
5919
5920        * WebView/WebHTMLView.mm:
5921        (-[WebHTMLView _selectionDraggingImage]):
5922        (-[WebHTMLView selectionImageForcingBlackText:]):
5923
59242013-12-04  Andy Estes  <aestes@apple.com>
5925
5926        [iOS] Build projects with $(ARCHS_STANDARD_32_64_BIT)
5927        https://bugs.webkit.org/show_bug.cgi?id=125236
5928
5929        Reviewed by Sam Weinig.
5930
5931        $(ARCHS_STANDARD_32_64_BIT) is what we want for both device and simulator builds.
5932
5933        * Configurations/DebugRelease.xcconfig:
5934
59352013-12-03  Joseph Pecoraro  <pecoraro@apple.com>
5936
5937        Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
5938        https://bugs.webkit.org/show_bug.cgi?id=124613
5939
5940        Reviewed by Timothy Hatcher.
5941
5942        Remove the old ENABLE(REMOTE_INSPECTOR) connection management implementation.
5943
5944        * WebCoreSupport/WebInspectorClient.h:
5945        * WebCoreSupport/WebInspectorClient.mm:
5946        (WebInspectorClient::indicate):
5947        (WebInspectorClient::hideIndicate):
5948        Hook up WebView indication through this new path.
5949
5950        * WebCoreSupport/WebFrameLoaderClient.mm:
5951        (WebFrameLoaderClient::dispatchDidReceiveTitle):
5952        * WebCoreSupport/WebInspectorClient.h:
5953        * WebCoreSupport/WebInspectorClient.mm:
5954        (WebInspectorClient::WebInspectorClient):
5955        (WebInspectorClient::inspectorDestroyed):
5956        * WebInspector/remote/WebInspectorClientRegistry.h: Removed.
5957        * WebInspector/remote/WebInspectorClientRegistry.mm: Removed.
5958        * WebInspector/remote/WebInspectorRelayDefinitions.h: Removed.
5959        * WebInspector/remote/WebInspectorRemoteChannel.h: Removed.
5960        * WebInspector/remote/WebInspectorRemoteChannel.mm: Removed.
5961        * WebInspector/remote/WebInspectorServer.h: Removed.
5962        * WebInspector/remote/WebInspectorServer.mm: Removed.
5963        * WebInspector/remote/WebInspectorServerWebViewConnection.h: Removed.
5964        * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Removed.
5965        * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Removed.
5966        * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Removed.
5967        * WebInspector/remote/WebInspectorXPCWrapper.h: Removed.
5968        * WebInspector/remote/WebInspectorXPCWrapper.m: Removed.
5969        * WebKit.exp:
5970        * WebView/WebView.mm:
5971        (-[WebView _commonInitializationWithFrameName:groupName:]):
5972        (+[WebView _enableRemoteInspector]):
5973        (+[WebView _disableRemoteInspector]):
5974        (+[WebView _disableAutoStartRemoteInspector]):
5975        (+[WebView _isRemoteInspectorEnabled]):
5976        (+[WebView _hasRemoteInspectorSession]):
5977        (-[WebView allowsRemoteInspection]):
5978        (-[WebView setAllowsRemoteInspection:]):
5979        (-[WebView setIndicatingForRemoteInspector:]):
5980        (-[WebView setHostApplicationBundleId:name:]):
5981        (-[WebView _didCommitLoadForFrame:]):
5982        * WebView/WebViewData.h:
5983        * WebView/WebViewData.mm:
5984        (-[WebViewPrivate init]):
5985        (-[WebViewPrivate dealloc]):
5986        * WebView/WebViewInternal.h:
5987        * WebView/WebViewPrivate.h:
5988        Remove old REMOTE_INSPECTOR.
5989
59902013-12-02  Chris Fleizach  <cfleizach@apple.com>
5991
5992        AX: Crash in accessibilityRoot when Document goes away
5993        https://bugs.webkit.org/show_bug.cgi?id=125113
5994
5995        Reviewed by Tim Horton.
5996
5997        The AXObjectCache can sometimes be null if the render tree has been detached from the document.
5998
5999        * WebView/WebFrame.mm:
6000        (-[WebFrame accessibilityRoot]):
6001
60022013-11-28  Antti Koivisto  <antti@apple.com>
6003
6004        Remove feature: CSS variables
6005        https://bugs.webkit.org/show_bug.cgi?id=114119
6006
6007        Reviewed by Andreas Kling.
6008
6009        * Configurations/FeatureDefines.xcconfig:
6010
60112013-11-27  Sam Weinig  <sam@webkit.org>
6012
6013        Fix the iOS build.
6014
6015        * WebView/WebAllowDenyPolicyListener.h: Added.
6016        * WebView/WebUIDelegatePrivate.h:
6017        Move the WebAllowDenyPolicyListener protocol to its own file.
6018
60192013-11-21  Mark Rowe  <mrowe@apple.com>
6020
6021        <https://webkit.org/b/124702> Stop overriding VALID_ARCHS.
6022
6023        All modern versions of Xcode set it appropriately for our needs.
6024
6025        Reviewed by Alexey Proskuryakov.
6026
6027        * Configurations/Base.xcconfig:
6028
60292013-11-21  Mark Rowe  <mrowe@apple.com>
6030
6031        <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
6032
6033        Reviewed by Alexey Proskuryakov.
6034
6035        * Configurations/Base.xcconfig:
6036
60372013-11-21  Mark Rowe  <mrowe@apple.com>
6038
6039        <https://webkit.org/b/124700> Fix some deprecation warnings.
6040
6041        Reviewed by Anders Carlsson.
6042
6043        * Plugins/WebNetscapePluginStream.mm:
6044        (WebNetscapePluginStream::startStream): Move off a deprecated NSData method.
6045        * WebView/WebDataSource.mm:
6046        (-[WebDataSource _fileWrapperForURL:]): Move off a deprecated NSFileWrapper method.
6047        * WebView/WebHTMLView.mm:
6048        (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
6049
60502013-11-20  Mark Lam  <mark.lam@apple.com>
6051
6052        Introducing VMEntryScope to update the VM stack limit.
6053        https://bugs.webkit.org/show_bug.cgi?id=124634.
6054
6055        Reviewed by Geoffrey Garen.
6056
6057        * WebView/WebScriptDebugger.mm:
6058        (WebScriptDebugger::sourceParsed):
6059
60602013-11-19  Ryosuke Niwa  <rniwa@webkit.org>
6061
6062        Enable HTMLTemplateElement on Mac port
6063        https://bugs.webkit.org/show_bug.cgi?id=124637
6064
6065        Reviewed by Tim Horton.
6066
6067        * Configurations/FeatureDefines.xcconfig:
6068
60692013-11-18  Commit Queue  <commit-queue@webkit.org>
6070
6071        Unreviewed, rolling out r159455.
6072        http://trac.webkit.org/changeset/159455
6073        https://bugs.webkit.org/show_bug.cgi?id=124568
6074
6075        broke two api tests (see bug 124564) (Requested by thorton on
6076        #webkit).
6077
6078        * WebView/WebHTMLView.mm:
6079        (-[WebHTMLView _selectionDraggingImage]):
6080        (-[WebHTMLView selectionImageForcingBlackText:]):
6081
60822013-11-18  Mark Rowe  <mrowe@apple.com>
6083
6084        Disable deprecation warnings related to NSCalendarDate in WebHistory.
6085
6086        Reviewed by Anders Carlsson.
6087
6088        * History/WebHistory.h: Use a #pragma to have the compiler treat this header as
6089        a system header, even when not included from a system location. This has the effect
6090        of suppressing warnings when including this header. It's a more general effect than
6091        we're after but is also less invasive than disabling deprecation warnings around
6092        the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this
6093        in the future.
6094        * History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate.
6095
60962013-11-18  David Hyatt  <hyatt@apple.com>
6097
6098        Add a quirk to not respect center text-align when positioning
6099
6100        <rdar://problem/15427571>
6101        https://bugs.webkit.org/show_bug.cgi?id=124522
6102
6103        Reviewed by Simon Fraser.
6104
6105        Added fast/block/legacy-text-align-position-quirk.html
6106
6107        * WebView/WebPreferenceKeysPrivate.h:
6108        * WebView/WebPreferences.mm:
6109        (+[WebPreferences initialize]):
6110        (-[WebPreferences useLegacyTextAlignPositionedElementBehavior]):
6111        (-[WebPreferences setUseLegacyTextAlignPositionedElementBehavior:]):
6112        * WebView/WebPreferencesPrivate.h:
6113        * WebView/WebView.mm:
6114        (-[WebView _preferencesChanged:]):
6115
61162013-11-18  Brian J. Burg  <burg@cs.washington.edu>
6117
6118        Consolidate various frame snapshot capabilities.
6119        https://bugs.webkit.org/show_bug.cgi?id=124325
6120
6121        Reviewed by Timothy Hatcher.
6122
6123        Use new platform-independent methods instead of Mac methods.
6124
6125        * WebView/WebHTMLView.mm:
6126        (-[WebHTMLView _selectionDraggingImage]):
6127        (-[WebHTMLView selectionImageForcingBlackText:]):
6128
61292013-11-18  Anders Carlsson  <andersca@apple.com>
6130
6131        Remove unnecessary COMPILER(CLANG) #ifdefs in Mac-only code
6132        https://bugs.webkit.org/show_bug.cgi?id=124523
6133
6134        Reviewed by Dan Bernstein.
6135
6136        * Plugins/Hosted/NetscapePluginHostManager.mm:
6137        (WebKit::NetscapePluginHostManager::spawnPluginHost):
6138        (WebKit::NetscapePluginHostManager::didCreateWindow):
6139        * Plugins/Hosted/NetscapePluginHostProxy.mm:
6140        (WebKit::NetscapePluginHostProxy::makeCurrentProcessFrontProcess):
6141        (WebKit::NetscapePluginHostProxy::makePluginHostProcessFrontProcess):
6142        (WebKit::NetscapePluginHostProxy::isPluginHostProcessFrontProcess):
6143
61442013-11-18  Anders Carlsson  <andersca@apple.com>
6145
6146        Ignore deprecation warnings for now.
6147
6148        * History/WebHistory.h:
6149
61502013-11-14  Anders Carlsson  <andersca@apple.com>
6151
6152        Reimplement getDayBoundaries using NSCalendar on 10.9
6153        https://bugs.webkit.org/show_bug.cgi?id=124379
6154
6155        Reviewed by Dan Bernstein.
6156
6157        * History/WebHistory.mm:
6158        (getDayBoundaries):
6159
61602013-11-14  Anders Carlsson  <andersca@apple.com>
6161
6162        Stop using deprecated NSPropertyListSerialization methods
6163        https://bugs.webkit.org/show_bug.cgi?id=124377
6164
6165        Reviewed by Mark Rowe.
6166
6167        * History/WebHistory.mm:
6168        (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
6169        * Plugins/Hosted/NetscapePluginHostManager.mm:
6170        (WebKit::NetscapePluginHostManager::spawnPluginHost):
6171        (WebKit::NetscapePluginHostManager::instantiatePlugin):
6172        * Plugins/Hosted/NetscapePluginHostProxy.mm:
6173        (WKPCIdentifierInfo):
6174        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
6175        (WebKit::NetscapePluginInstanceProxy::enumerate):
6176        (WebKit::NetscapePluginInstanceProxy::marshalValue):
6177        (WebKit::NetscapePluginInstanceProxy::marshalValues):
6178        (WebKit::NetscapePluginInstanceProxy::demarshalValue):
6179        (WebKit::NetscapePluginInstanceProxy::demarshalValues):
6180        * Plugins/Hosted/ProxyInstance.mm:
6181        (WebKit::ProxyInstance::getPropertyNames):
6182
61832013-11-13  Joseph Pecoraro  <pecoraro@apple.com>
6184
6185        Unreviewed rollout of r159271, broke Mountain Lion build.
6186
6187        * History/WebHistory.h:
6188        * History/WebHistory.mm:
6189
61902013-11-13  Anders Carlsson  <andersca@apple.com>
6191
6192        Deprecate WebHistory methods that use NSCalendarDate
6193        https://bugs.webkit.org/show_bug.cgi?id=124329
6194        <rdar://problem/15441122>
6195
6196        Reviewed by Mark Rowe.
6197
6198        * History/WebHistory.h:
6199        Add NS_DEPRECATED_MAC to orderedLastVisitedDays and orderedItemsLastVisitedOnDay:.
6200        In order to not break the Mountain Lion build, define __NSd_10_9 if necessary.
6201        
6202        * History/WebHistory.mm:
6203        Ignore deprecation warnings in methods where NSCalendarDate is used.
6204
62052013-11-13  Gordon Sheridan  <gordon_sheridan@apple.com>
6206
6207        Removed deprecated download delegates.
6208        https://bugs.webkit.org/show_bug.cgi?id=124309
6209        <rdar://problem/13570414>
6210
6211        Reviewed by Anders Carlsson.
6212
6213        * Misc/WebDownload.mm:
6214        (-[WebDownloadInternal respondsToSelector:]):
6215        Removed download:shouldBeginChildDownloadOfSource:delegate and
6216        download:didBeginChildDownload.
6217
62182013-11-12  Alexey Proskuryakov  <ap@apple.com>
6219
6220        Disable WebCrypto on Mountain Lion
6221        https://bugs.webkit.org/show_bug.cgi?id=124261
6222
6223        Rubber-stamped by Sam Weinig.
6224
6225        * Configurations/FeatureDefines.xcconfig:
6226
62272013-11-12  Andy Estes  <aestes@apple.com>
6228
6229        [Mac] Fix some deprecation warnings
6230        https://bugs.webkit.org/show_bug.cgi?id=124252
6231
6232        Reviewed by Mark Rowe.
6233
6234        * Plugins/WebBasePluginPackage.mm:
6235        (-[WebBasePluginPackage pListForPath:createFile:]): Use +[NSPropertyListSerialization propertyListWithData:options:format:error:] instead of +[NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:].
6236
62372013-11-12  Anders Carlsson  <andersca@apple.com>
6238
6239        Remove -[WebHistoryItem _lastVisitedDate]
6240        https://bugs.webkit.org/show_bug.cgi?id=124250
6241
6242        Reviewed by Mark Rowe.
6243
6244        This method is not called by anyone and NSCalendarDate is deprecated so get rid of it.
6245
6246        * History/WebHistoryItem.mm:
6247        * History/WebHistoryItemPrivate.h:
6248
62492013-11-11  Anders Carlsson  <andersca@apple.com>
6250
6251        FrameFilter can just be an std::function instead
6252        https://bugs.webkit.org/show_bug.cgi?id=124176
6253
6254        Reviewed by Tim Horton.
6255
6256        * DOM/WebDOMOperations.mm:
6257        (-[DOMNode webArchiveByFilteringSubframes:]):
6258
62592013-11-11  Dan Bernstein  <mitz@apple.com>
6260
6261        [Mac] .exp files are not source code
6262        https://bugs.webkit.org/show_bug.cgi?id=124154
6263
6264        Reviewed by Andy Estes.
6265
6266        * Configurations/WebKit.xcconfig: Removed WebKit.iOS.exp from
6267        EXCLUDED_SOURCE_FILE_NAMES_macosx.
6268
62692013-11-09  Patrick Gansterer  <paroga@webkit.org>
6270
6271        Move RunLoop from WebCore to WTF
6272        https://bugs.webkit.org/show_bug.cgi?id=116606
6273
6274        Reviewed by Anders Carlsson.
6275
6276        * Carbon/CarbonWindowAdapter.mm:
6277        (+[CarbonWindowAdapter initialize]):
6278        * History/WebBackForwardList.mm:
6279        (+[WebBackForwardList initialize]):
6280        * History/WebHistoryItem.mm:
6281        (+[WebHistoryItem initialize]):
6282        * Misc/WebCache.mm:
6283        (+[WebCache initialize]):
6284        * Misc/WebElementDictionary.mm:
6285        (+[WebElementDictionary initialize]):
6286        * Misc/WebIconDatabase.mm:
6287        (+[WebIconDatabase initialize]):
6288        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
6289        (+[WebHostedNetscapePluginView initialize]):
6290        * Plugins/WebBaseNetscapePluginView.mm:
6291        * Plugins/WebBasePluginPackage.mm:
6292        * Plugins/WebNetscapePluginView.mm:
6293        (+[WebNetscapePluginView initialize]):
6294        * WebCoreSupport/WebEditorClient.mm:
6295        (+[WebUndoStep initialize]):
6296        * WebCoreSupport/WebFrameLoaderClient.mm:
6297        * WebView/WebArchive.mm:
6298        (+[WebArchivePrivate initialize]):
6299        * WebView/WebDataSource.mm:
6300        (+[WebDataSource initialize]):
6301        * WebView/WebHTMLView.mm:
6302        (+[WebHTMLViewPrivate initialize]):
6303        (+[WebHTMLView initialize]):
6304        * WebView/WebPreferences.mm:
6305        (+[WebPreferences initialize]):
6306        * WebView/WebResource.mm:
6307        (+[WebResourcePrivate initialize]):
6308        * WebView/WebTextIterator.mm:
6309        (+[WebTextIteratorPrivate initialize]):
6310        * WebView/WebView.mm:
6311        (+[WebView initialize]):
6312        * WebView/WebViewData.mm:
6313        (+[WebViewPrivate initialize]):
6314
63152013-11-08  Mark Lam  <mark.lam@apple.com>
6316
6317        Move breakpoint (and exception break) functionality into JSC::Debugger.
6318        https://bugs.webkit.org/show_bug.cgi?id=121796.
6319
6320        Reviewed by Geoffrey Garen.
6321
6322        * WebView/WebScriptDebugger.h:
6323        * WebView/WebScriptDebugger.mm:
6324        (WebScriptDebugger::WebScriptDebugger):
6325        (WebScriptDebugger::handlePause):
6326
63272013-11-07  Joseph Pecoraro  <pecoraro@apple.com>
6328
6329        Remove a PLATFORM(IOS) from WebKit Private Header
6330        https://bugs.webkit.org/show_bug.cgi?id=124014
6331
6332        Reviewed by Timothy Hatcher.
6333
6334        Make the previously iOS only WebInspectorDidStartSearchingForNode
6335        and WebInspectorDidStopSearchingForNode notifications non iOS specific.
6336
6337        * WebCoreSupport/WebInspectorClient.h:
6338        * WebCoreSupport/WebInspectorClient.mm:
6339        (WebInspectorClient::didSetSearchingForNode):
6340        * WebInspector/WebInspector.h:
6341        * WebInspector/WebInspector.mm:
6342        * WebKit.exp:
6343
63442013-11-07  Mark Lam  <mark.lam@apple.com>
6345
6346        Cosmetic: rename xxxId to xxxID for ScriptId, SourceId, and BreakpointId.
6347        https://bugs.webkit.org/show_bug.cgi?id=123945.
6348
6349        Reviewed by Geoffrey Garen.
6350
6351        * WebView/WebScriptDebugger.mm:
6352        (WebScriptDebugger::exception):
6353
63542013-11-06  Daniel Bates  <dabates@apple.com>
6355
6356        [iOS] Upstream Letterpress effect
6357        https://bugs.webkit.org/show_bug.cgi?id=123932
6358
6359        Reviewed by Sam Weinig.
6360
6361        Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
6362        letterpress on iOS.
6363
6364        * Configurations/FeatureDefines.xcconfig:
6365
63662013-11-04  Alexey Proskuryakov  <ap@apple.com>
6367
6368        DumpRenderTree should reset its preferences file on launch
6369        https://bugs.webkit.org/show_bug.cgi?id=29751
6370
6371        Reviewed by Dan Bernstein.
6372
6373        * WebView/WebView.mm:
6374        (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
6375        Further fix reading of AppleKeyboardUIMode - reading it from kCFPreferencesAnyApplication
6376        domain meant that current application's domain was explcitly ignored, and the only
6377        way to override the setting in DRT was through argument domain.
6378
63792013-11-01  Jer Noble  <jer.noble@apple.com>
6380
6381        [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
6382        https://bugs.webkit.org/show_bug.cgi?id=123621
6383
6384        Reviewed by Eric Carlson.
6385
6386        Add a new isVideoPluginProxyEnabled setting.
6387
6388        * WebView/WebPreferenceKeysPrivate.h:
6389        * WebView/WebPreferences.mm:
6390        (+[WebPreferences initialize]): Set isVideoPluginProxyEnabled preference.
6391        (-[WebPreferences isVideoPluginProxyEnabled]): Pass through to Settings.
6392        * WebView/WebPreferencesPrivate.h:
6393        * WebView/WebView.mm:
6394        (-[WebView _preferencesChanged:]): Set isVideoPluginProxyEnabled preference.
6395
63962013-11-01  Andy Estes  <aestes@apple.com>
6397
6398        [iOS] Make some headers Private
6399        https://bugs.webkit.org/show_bug.cgi?id=123626
6400
6401        Reviewed by Andreas Kling.
6402
6403        * Configurations/WebKit.xcconfig: Exclude iOS Private headers from the Mac build.
6404
64052013-10-31  Alexey Proskuryakov  <ap@apple.com>
6406
6407        Enable WebCrypto on Mac
6408        https://bugs.webkit.org/show_bug.cgi?id=123587
6409
6410        Reviewed by Anders Carlsson.
6411
6412        * Configurations/FeatureDefines.xcconfig: Do it.
6413
64142013-10-30  Ryosuke Niwa  <rniwa@webkit.org>
6415
6416        Remove code for Mac Lion
6417        https://bugs.webkit.org/show_bug.cgi?id=123542
6418
6419        Reviewed by Anders Carlsson.
6420
6421        * WebView/WebHTMLView.mm:
6422        (-[WebHTMLView attachRootLayer:]):
6423        * WebView/WebView.mm:
6424
64252013-10-29  Andy Estes  <aestes@apple.com>
6426
6427        [iOS] Upstream Source/WebKit/ios/
6428        https://bugs.webkit.org/show_bug.cgi?id=123470
6429
6430        Reviewed by Sam Weinig.
6431
6432        * Configurations/WebKit.xcconfig: Excluded some iOS files from the Mac build.
6433
64342013-10-29  Alexey Proskuryakov  <ap@apple.com>
6435
6436        Result of focus-option-control-on-page.html depends on system preferences
6437        https://bugs.webkit.org/show_bug.cgi?id=123304
6438
6439        Reviewed by Simon Fraser.
6440
6441        * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
6442        Read the preference from its correct domain. This doesn't affect behavior in practice
6443        and isn't part of the fix, but it's a good opportunity to correct this code.
6444
64452013-10-29  Jer Noble  <jer.noble@apple.com>
6446
6447        [MSE] [Mac] Enable MediaSource on the Mac
6448        https://bugs.webkit.org/show_bug.cgi?id=122484
6449
6450        Reviewed by Darin Adler.
6451
6452        Enable ENABLE_MEDIA_SOURCE.
6453
6454        * Configurations/FeatureDefines.xcconfig:
6455
64562013-10-28  Joseph Pecoraro  <pecoraro@apple.com>
6457
6458        Upstream remaining PLATFORM(IOS) and ENABLE(REMOTE_INSPECTOR) pieces
6459        https://bugs.webkit.org/show_bug.cgi?id=123411
6460
6461        Reviewed by Timothy Hatcher.
6462
6463        Upstream iOS node highlighting and view indication.
6464
6465        * WebCoreSupport/WebInspectorClient.h:
6466        * WebInspector/WebInspector.h:
6467        * WebInspector/WebInspector.mm:
6468        * WebInspector/WebNodeHighlight.h:
6469        * WebInspector/WebNodeHighlight.mm:
6470        (-[WebHighlightLayer initWithHighlightView:webView:]):
6471        (-[WebHighlightLayer layoutSublayers]):
6472        (-[WebHighlightLayer actionForKey:]):
6473        (-[WebNodeHighlight initWithTargetView:inspectorController:]):
6474        (-[WebNodeHighlight dealloc]):
6475        (-[WebNodeHighlight attach]):
6476        * WebInspector/WebNodeHighlightView.h:
6477        * WebInspector/WebNodeHighlightView.mm:
6478        (-[WebNodeHighlightView initWithWebNodeHighlight:]):
6479        (-[WebNodeHighlightView dealloc]):
6480        (-[WebNodeHighlightView _attach:numLayers:]):
6481        (findIntersectionOnLineBetweenPoints):
6482        (quadIntersection):
6483        (layerPathWithHole):
6484        (layerPath):
6485        (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
6486        (-[WebNodeHighlightView _layoutForRectsHighlight:parent:]):
6487        (-[WebNodeHighlightView layoutSublayers:]):
6488        * WebInspector/WebNodeHighlighter.mm:
6489        (-[WebNodeHighlighter highlight]):
6490        * WebView/WebIndicateLayer.h: Added.
6491        * WebView/WebIndicateLayer.mm: Added.
6492        (-[WebIndicateLayer layoutSublayers]):
6493        (-[WebIndicateLayer actionForKey:]):
6494        * WebView/WebView.mm:
6495        (-[WebView setIndicatingForRemoteInspector:]):
6496        (-[WebView setHostApplicationBundleId:name:]):
6497        (-[WebView hostApplicationBundleId]):
6498        (-[WebView hostApplicationName]):
6499        * WebView/WebViewData.h:
6500        * WebView/WebViewData.mm:
6501        (-[WebViewPrivate dealloc]):
6502
65032013-10-28  Myles C. Maxfield  <mmaxfield@apple.com>
6504
6505        Parsing support for -webkit-text-decoration-skip: ink
6506        https://bugs.webkit.org/show_bug.cgi?id=123358
6507
6508        Reviewed by Dean Jackson.
6509
6510        Adding ENABLE(CSS3_TEXT_DECORATION)
6511
6512        * Configurations/FeatureDefines.xcconfig:
6513
65142013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
6515
6516        Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
6517        https://bugs.webkit.org/show_bug.cgi?id=123111
6518
6519        Reviewed by Timothy Hatcher.
6520
6521        The actual implementation at the WebCoreSupport/WebInspectorClient level
6522        is the same as INSPECTOR_SERVER. Give debuggable pages a pageIdentifer.
6523
6524        * Configurations/FeatureDefines.xcconfig:
6525        * Misc/WebKitLogging.h:
6526        Misc.
6527
6528        * WebCoreSupport/WebInspectorClient.h:
6529        (WebInspectorClient::pageId):
6530        (WebInspectorClient::setPageId):
6531        Give WebInspectorClient's a page identifier.
6532
6533        * WebCoreSupport/WebInspectorClient.mm:
6534        (WebInspectorClient::WebInspectorClient):
6535        (WebInspectorClient::inspectorDestroyed):
6536        (WebInspectorClient::sendMessageToFrontend):
6537        (WebInspectorClient::sendMessageToBackend):
6538        (WebInspectorClient::setupRemoteConnection):
6539        (WebInspectorClient::teardownRemoteConnection):
6540        (WebInspectorClient::hasLocalSession):
6541        (WebInspectorClient::canBeRemotelyInspected):
6542        (WebInspectorClient::inspectedWebView):
6543        A WebInspectorClient can be either local or remote. Add handling
6544        for remote connections.
6545
6546        * WebInspector/remote/WebInspectorClientRegistry.h: Added.
6547        * WebInspector/remote/WebInspectorClientRegistry.mm: Added.
6548        (+[WebInspectorClientRegistry sharedRegistry]):
6549        (-[WebInspectorClientRegistry init]):
6550        (-[WebInspectorClientRegistry _getNextAvailablePageId]):
6551        (-[WebInspectorClientRegistry registerClient:]):
6552        (-[WebInspectorClientRegistry unregisterClient:]):
6553        (-[WebInspectorClientRegistry clientForPageId:]):
6554        (-[WebInspectorClientRegistry inspectableWebViews]):
6555        Registry for all potentially debuggable pages. All WebInspectorClient instances.
6556
6557        * WebInspector/remote/WebInspectorRelayDefinitions.h: Added.
6558        Constants (message keys) shared between WebKit and the XPC process.
6559
6560        * WebInspector/remote/WebInspectorServer.h: Added.
6561        * WebInspector/remote/WebInspectorServer.mm: Added.
6562        (-[WebInspectorServer init]):
6563        (-[WebInspectorServer dealloc]):
6564        (-[WebInspectorServer start]):
6565        (-[WebInspectorServer stop]):
6566        (-[WebInspectorServer isEnabled]):
6567        (-[WebInspectorServer xpcConnection]):
6568        (-[WebInspectorServer setupXPCConnectionIfNeeded]):
6569        (-[WebInspectorServer pushListing]):
6570        (-[WebInspectorServer hasActiveDebugSession]):
6571        (-[WebInspectorServer setHasActiveDebugSession:]):
6572        (-[WebInspectorServer xpcConnection:receivedMessage:userInfo:]):
6573        (-[WebInspectorServer xpcConnectionFailed:]):
6574        (-[WebInspectorServer didRegisterClient:]):
6575        (-[WebInspectorServer didUnregisterClient:]):
6576        Singleton to start/stop remote inspection. Handles the connection to the XPC
6577        and hands off connections to the connection controller.
6578
6579        * WebInspector/remote/WebInspectorServerWebViewConnection.h: Added.
6580        * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Added.
6581        (-[WebInspectorServerWebViewConnection initWithController:connectionIdentifier:destination:identifier:]):
6582        (-[WebInspectorServerWebViewConnection setupChannel]):
6583        (-[WebInspectorServerWebViewConnection dealloc]):
6584        (-[WebInspectorServerWebViewConnection connectionIdentifier]):
6585        (-[WebInspectorServerWebViewConnection identifier]):
6586        (-[WebInspectorServerWebViewConnection clearChannel]):
6587        (-[WebInspectorServerWebViewConnection sendMessageToFrontend:]):
6588        (-[WebInspectorServerWebViewConnection sendMessageToBackend:]):
6589        (-[WebInspectorServerWebViewConnection receivedData:]):
6590        (-[WebInspectorServerWebViewConnection receivedDidClose:]):
6591        An individual remote debug session connection.
6592
6593        * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Added.
6594        * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Added.
6595        (-[WebInspectorServerWebViewConnectionController initWithServer:]):
6596        (-[WebInspectorServerWebViewConnectionController dealloc]):
6597        (-[WebInspectorServerWebViewConnectionController closeAllConnections]):
6598        (-[WebInspectorServerWebViewConnectionController _listingForWebView:pageId:registry:]):
6599        (-[WebInspectorServerWebViewConnectionController _pushListing:]):
6600        (-[WebInspectorServerWebViewConnectionController pushListing:]):
6601        (-[WebInspectorServerWebViewConnectionController pushListing]):
6602        (-[WebInspectorServerWebViewConnectionController _receivedSetup:]):
6603        (-[WebInspectorServerWebViewConnectionController _receivedData:]):
6604        (-[WebInspectorServerWebViewConnectionController _receivedDidClose:]):
6605        (-[WebInspectorServerWebViewConnectionController _receivedGetListing:]):
6606        (-[WebInspectorServerWebViewConnectionController _receivedIndicate:]):
6607        (-[WebInspectorServerWebViewConnectionController _receivedConnectionDied:]):
6608        (-[WebInspectorServerWebViewConnectionController receivedMessage:userInfo:]):
6609        (-[WebInspectorServerWebViewConnectionController connectionClosing:]):
6610        (-[WebInspectorServerWebViewConnectionController sendMessageToFrontend:userInfo:]):
6611        ConnectionController:
6612          - Holds all the current ongoing remote debug connections.
6613          - Simplifies multi-threaded work on iOS.
6614          - Dispatches incoming messages from the remote connection.
6615
6616        * WebInspector/remote/WebInspectorRemoteChannel.h: Added.
6617        * WebInspector/remote/WebInspectorRemoteChannel.mm: Added.
6618        (+[WebInspectorRemoteChannel createChannelForPageId:connection:]):
6619        (-[WebInspectorRemoteChannel initWithRemote:local:]):
6620        (-[WebInspectorRemoteChannel closeFromLocalSide]):
6621        (-[WebInspectorRemoteChannel closeFromRemoteSide]):
6622        (-[WebInspectorRemoteChannel sendMessageToFrontend:]):
6623        (-[WebInspectorRemoteChannel sendMessageToBackend:]):
6624        Thin interface between the remote connection and web inspector client.
6625        This simplifies breaking the connection from either side, e.g. the
6626        page closing, or the remote connection disconnecting.
6627
6628        * WebInspector/remote/WebInspectorXPCWrapper.h: Added.
6629        * WebInspector/remote/WebInspectorXPCWrapper.m: Added.
6630        (-[WebInspectorXPCWrapper initWithConnection:]):
6631        (-[WebInspectorXPCWrapper close]):
6632        (-[WebInspectorXPCWrapper dealloc]):
6633        (-[WebInspectorXPCWrapper _deserializeMessage:]):
6634        (-[WebInspectorXPCWrapper _handleEvent:]):
6635        (-[WebInspectorXPCWrapper sendMessage:userInfo:]):
6636        (-[WebInspectorXPCWrapper available]):
6637        * WebKit.exp:
6638        XPC Connection wrapper handling a simple message format.
6639
6640        * WebView/WebViewData.h:
6641        * WebView/WebViewData.mm:
6642        (-[WebViewPrivate init]):
6643        (-[WebViewPrivate dealloc]):
6644        * WebView/WebViewInternal.h:
6645        * WebView/WebViewPrivate.h:
6646        * WebView/WebView.mm:
6647        (-[WebView _commonInitializationWithFrameName:groupName:]):
6648        (+[WebView sharedWebInspectorServer]):
6649        (+[WebView _enableRemoteInspector]):
6650        (+[WebView _disableRemoteInspector]):
6651        (+[WebView _disableAutoStartRemoteInspector]):
6652        (+[WebView _isRemoteInspectorEnabled]):
6653        (+[WebView _hasRemoteInspectorSession]):
6654        (-[WebView canBeRemotelyInspected]):
6655        (-[WebView allowsRemoteInspection]):
6656        (-[WebView setAllowsRemoteInspection:]):
6657        (-[WebView setIndicatingForRemoteInspector:]):
6658        (-[WebView setRemoteInspectorUserInfo:]):
6659        (-[WebView remoteInspectorUserInfo]):
6660        Remote inspector private API.
6661          - Enable / disable globally
6662          - Allow / disallow per webview
6663          - Optionally attach a userInfo dictionary on the WebView that is published with listing.
6664          - Indicate a WebView (implementation to land later)
6665
6666        (-[WebView _didCommitLoadForFrame:]):
6667        * WebCoreSupport/WebFrameLoaderClient.mm:
6668        (WebFrameLoaderClient::dispatchDidReceiveTitle):
6669        Pages changed, pushed page listing.
6670
66712013-10-25  Mark Rowe  <mrowe@apple.com>
6672
6673        Fix or disable some deprecation warnings.
6674
6675        Reviewed by Darin Adler.
6676
6677        * Panels/WebAuthenticationPanel.m:
6678        (-[WebAuthenticationPanel cancel:]): On newer OS versions, use the modern API.
6679        (-[WebAuthenticationPanel logIn:]): Ditto.
6680        (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]): Ditto. Translate the
6681        response code in to the form that -sheetDidEnd:responseCode:contextInfo: expects.
6682        * WebView/WebClipView.mm:
6683        (-[WebClipView initWithFrame:]): Disable deprecation warnings since it's not obvious
6684        how to avoid calling -releaseGState here.
6685
66862013-10-24  Mark Rowe  <mrowe@apple.com>
6687
6688        Remove references to OS X 10.7 from Xcode configuration settings.
6689
6690        Now that we're not building for OS X 10.7 they're no longer needed.
6691
6692        Reviewed by Anders Carlsson.
6693
6694        * Configurations/Base.xcconfig:
6695        * Configurations/DebugRelease.xcconfig:
6696        * Configurations/FeatureDefines.xcconfig:
6697        * Configurations/Version.xcconfig:
6698
66992013-10-24  Mark Rowe  <mrowe@apple.com>
6700
6701        <rdar://problem/15312643> Prepare for the mysterious future.
6702
6703        Reviewed by David Kilzer.
6704
6705        * Configurations/Base.xcconfig:
6706        * Configurations/DebugRelease.xcconfig:
6707        * Configurations/FeatureDefines.xcconfig:
6708        * Configurations/Version.xcconfig:
6709
67102013-10-24  Anders Carlsson  <andersca@apple.com>
6711
6712        Stop bringing in the std namespace
6713        https://bugs.webkit.org/show_bug.cgi?id=123273
6714
6715        Reviewed by Andreas Kling.
6716
6717        * WebView/WebFrameView.mm:
6718        (-[WebFrameView _verticalPageScrollDistance]):
6719        (-[WebFrameView _horizontalPageScrollDistance]):
6720        * WebView/WebHTMLView.mm:
6721        (-[WebHTMLView _scaleFactorForPrintOperation:]):
6722        * WebView/WebView.mm:
6723        (+[WebView _setCacheModel:]):
6724        (+[WebView _maxCacheModelInAnyInstance]):
6725        (+[WebView _cacheModelChangedNotification:]):
6726        (+[WebView _preferencesRemovedNotification:]):
6727
67282013-10-22  Dean Jackson  <dino@apple.com>
6729
6730        [WebGL] Implement a software rendering option on Mac
6731        https://bugs.webkit.org/show_bug.cgi?id=123177
6732
6733        Reviewed by Tim Horton.
6734
6735        Implement a way to force software OpenGL rendering
6736        for WebGL, via a Setting/Preference.
6737
6738        * WebView/WebPreferenceKeysPrivate.h: New WebKitForceSoftwareWebGLRendering key.
6739        * WebView/WebPreferences.mm:
6740        (+[WebPreferences initialize]):
6741        (-[WebPreferences forceSoftwareWebGLRendering]):
6742        (-[WebPreferences setForceSoftwareWebGLRendering:]):
6743        * WebView/WebPreferencesPrivate.h:
6744        * WebView/WebView.mm:
6745        (-[WebView _preferencesChanged:]):
6746
67472013-10-21  Mark Rowe  <mrowe@apple.com>
6748
6749        Add a version of WebKitSystemInterface for Mavericks.
6750
6751        Reviewed by Ryosuke Niwa.
6752
6753        * Configurations/DebugRelease.xcconfig:
6754
67552013-10-21  Daniel Bates  <dabates@apple.com>
6756
6757        Remove platform #ifdefs from WebDataSourcePrivate.h
6758        https://bugs.webkit.org/show_bug.cgi?id=123120
6759        <rdar://problem/15275533>
6760
6761        Reviewed by Anders Carlsson.
6762
6763        * WebView/WebDataSource.mm:
6764        (-[WebDataSource _setAllowToBeMemoryMapped]): Define empty implementation when building without
6765        disk image cache enabled.
6766        (-[WebDataSource setDataSourceDelegate:]): Ditto.
6767        (-[WebDataSource dataSourceDelegate]): Return nullptr when building without disk image cache
6768        enabled on iOS.
6769        * WebView/WebDataSourcePrivate.h: Removed platform #ifdefs added in
6770        <http://trac.webkit.org/changeset/156918> (https://bugs.webkit.org/show_bug.cgi?id=121985)
6771
67722013-10-20  Mark Lam  <mark.lam@apple.com>
6773
6774        Avoid JSC debugger overhead unless needed.
6775        https://bugs.webkit.org/show_bug.cgi?id=123084.
6776
6777        Reviewed by Geoffrey Garen.
6778
6779        * WebView/WebScriptDebugger.mm:
6780        (WebScriptDebugger::WebScriptDebugger):
6781
67822013-10-19  Jer Noble  <jer.noble@apple.com>
6783
6784        Unreviewed roll out of r157695; broke Mac builds.
6785
6786        * Configurations/FeatureDefines.xcconfig:
6787
67882013-10-07  Jer Noble  <jer.noble@apple.com>
6789
6790        [MSE] [Mac] Enable MediaSource on the Mac
6791        https://bugs.webkit.org/show_bug.cgi?id=122484
6792
6793        Reviewed by Darin Adler.
6794
6795        Enable ENABLE_MEDIA_SOURCE.
6796
6797        * Configurations/FeatureDefines.xcconfig:
6798
67992013-10-19  Andreas Kling  <akling@apple.com>
6800
6801        Attempt to get Lion building.
6802
6803        * WebView/WebDataSource.mm:
6804
68052013-10-18  Anders Carlsson  <andersca@apple.com>
6806
6807        Remove spaces between template angle brackets
6808        https://bugs.webkit.org/show_bug.cgi?id=123040
6809
6810        Reviewed by Andreas Kling.
6811
6812        * History/WebHistory.mm:
6813        (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
6814        * History/WebHistoryItem.mm:
6815        (-[WebHistoryItem initFromDictionaryRepresentation:]):
6816        * Plugins/Hosted/NetscapePluginHostProxy.h:
6817        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
6818        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
6819        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
6820        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
6821        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
6822        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
6823        (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
6824        * Plugins/WebNetscapePluginView.h:
6825        * Plugins/WebNetscapePluginView.mm:
6826        (-[WebNetscapePluginView destroyPlugin]):
6827        * Storage/WebDatabaseManager.mm:
6828        (-[WebDatabaseManager origins]):
6829        * Storage/WebStorageManager.mm:
6830        (-[WebStorageManager origins]):
6831        * WebCoreSupport/WebApplicationCache.mm:
6832        (+[WebApplicationCache originsWithCache]):
6833        * WebCoreSupport/WebEditorClient.h:
6834        * WebCoreSupport/WebEditorClient.mm:
6835        (WebEditorClient::getClientPasteboardDataForRange):
6836        (WebEditorClient::documentFragmentFromAttributedString):
6837        * WebCoreSupport/WebFrameLoaderClient.h:
6838        * WebCoreSupport/WebNotificationClient.h:
6839        * WebCoreSupport/WebNotificationClient.mm:
6840        (WebNotificationClient::show):
6841        (WebNotificationClient::clearNotifications):
6842        * WebView/WebArchive.mm:
6843        (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
6844        (-[WebArchive subresources]):
6845        (-[WebArchive subframeArchives]):
6846        * WebView/WebDataSource.mm:
6847        (-[WebDataSource subresources]):
6848        * WebView/WebViewData.h:
6849
68502013-10-16  Jochen Eisinger  <jochen@chromium.org>
6851
6852        A page should exit fullscreen mode if it opens a new popup
6853        https://bugs.webkit.org/show_bug.cgi?id=122865
6854
6855        Reviewed by Jer Noble.
6856
6857        If a fullscreen page opens a popup, the popup would be hidden and
6858        therefore invisible to the user. To avoid this, exit fullscreen mode
6859        before opening a new window.
6860
6861        * WebCoreSupport/WebChromeClient.mm:
6862        (WebChromeClient::createWindow):
6863
68642013-10-15  Dean Jackson  <dino@apple.com>
6865
6866        Add ENABLE_WEB_ANIMATIONS flag
6867        https://bugs.webkit.org/show_bug.cgi?id=122871
6868
6869        Reviewed by Tim Horton.
6870
6871        Eventually might be http://dev.w3.org/fxtf/web-animations/
6872        but this is just engine-internal work at the moment.
6873
6874        * Configurations/FeatureDefines.xcconfig:
6875
68762013-10-15  Andy Estes  <aestes@apple.com>
6877
6878        Expose -[WebPluginPackage bundle] as SPI
6879        https://bugs.webkit.org/show_bug.cgi?id=122814
6880
6881        Reviewed by Anders Carlsson.
6882
6883        * Plugins/WebPluginPackage.mm:
6884        (-[WebPluginPackage bundle]): Defined.
6885        * Plugins/WebPluginPackagePrivate.h: Declared bundle as a method in a
6886        category on NSObject.
6887
68882013-10-12  Darin Adler  <darin@apple.com>
6889
6890        Get rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
6891        https://bugs.webkit.org/show_bug.cgi?id=122713
6892
6893        Reviewed by Sam Weinig.
6894
6895        * WebView/WebHTMLRepresentation.mm:
6896        (-[WebHTMLRepresentation elementWithName:inForm:]): Use asHTMLElement.
6897        (-[WebHTMLRepresentation controlsInForm:]): Ditto.
6898
68992013-10-12  Adam Roben  <aroben@webkit.org>
6900
6901        WebViews inside OS X screen savers have large caches, but should not
6902        https://bugs.webkit.org/show_bug.cgi?id=122604
6903
6904        We use WebCacheModelDocumentViewer by default for apps linked against
6905        modern WebKit, and WebCacheModelDocumentBrowser for apps linked
6906        against legacy WebKit. ScreenSaverEngine.app doesn't link against
6907        WebKit at all, and thus falls into the legacy case by accident because
6908        NSVersionOfLinkTimeLibrary("WebKit") returns -1.
6909
6910        But WebViews inside screen savers are almost certainly not being used
6911        as browsers, so this large-ish cache specified by
6912        WebCacheModelDocumentBrowser is wasteful. This is likely true for all
6913        apps that don't directly link against WebKit, so now we use
6914        WebCacheModelDocumentViewer by default for those apps.
6915
6916        Reviewed by Darin Adler.
6917
6918        * WebView/WebPreferences.mm:
6919        (cacheModelForMainBundle): Use WebCacheModelDocumentViewer by default
6920        for apps that don't link against WebKit directly. Also converted to
6921        use @autoreleasepool {} and early returns while I was in here.
6922
69232013-10-12  Alexey Proskuryakov  <ap@apple.com>
6924
6925        Add a feature define for SubtleCrypto
6926        https://bugs.webkit.org/show_bug.cgi?id=122683
6927
6928        Reviewed by Anders Carlsson.
6929
6930        * Configurations/FeatureDefines.xcconfig:
6931
69322013-10-12  Darin Adler  <darin@apple.com>
6933
6934        Use unique_ptr instead of delete in a few places
6935        https://bugs.webkit.org/show_bug.cgi?id=122639
6936
6937        Reviewed by Anders Carlsson.
6938
6939        * History/WebHistory.mm:
6940        (-[WebHistoryPrivate init]): Use make_unique.
6941        (-[WebHistoryPrivate dealloc]): Don't delete.
6942        (-[WebHistoryPrivate finalize]): Don't delete.
6943        (-[WebHistoryPrivate data]): Use get.
6944
6945        * WebCoreSupport/WebFrameNetworkingContext.mm:
6946        (privateSession): Use NeverDestroyed here instead of a raw pointer.
6947        (WebFrameNetworkingContext::ensurePrivateBrowsingSession): Use the
6948        new function instead of direct global variable access.
6949        (WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
6950        (WebFrameNetworkingContext::storageSession): Ditto.
6951
6952        * WebView/WebFrame.mm:
6953        (-[WebFramePrivate dealloc]): Don't delete.
6954        (-[WebFramePrivate finalize]): Don't delete.
6955        (-[WebFrame _attachScriptDebugger]): Use make_unique.
6956        (-[WebFrame _detachScriptDebugger]): Don't delete.
6957        * WebView/WebFrameInternal.h: Use unique_ptr.
6958
69592013-10-11  Timothy Hatcher  <timothy@apple.com>
6960
6961        Remove preference support for picking the old Web Inspector.
6962        https://bugs.webkit.org/show_bug.cgi?id=122655
6963
6964        Reviewed by Alexey Proskuryakov.
6965
6966        * WebCoreSupport/WebInspectorClient.mm:
6967        (WebInspectorFrontendClient::localizedStringsURL):
6968        (-[WebInspectorWindowController inspectorPagePath]):
6969
69702013-10-10  Simon Fraser  <simon.fraser@apple.com>
6971
6972        Always force layout before flushing compositing layers
6973        https://bugs.webkit.org/show_bug.cgi?id=122626
6974
6975        Reviewed by Tim Horton.
6976        
6977        [m_webView _flushCompositingChanges] only actually flushes compositing
6978        layers if the FrameView does not need layout (FrameView::flushCompositingStateForThisFrame()
6979        returns in this case). In this situation, flushLayers() does actually try
6980        to force a layout, but on some platforms it's possible for something else
6981        to dirty layout before the runloop observer fires again. This can result
6982        in flushLayers() never actually managing to flush, which stalls visual
6983        updates.
6984        
6985        Fix by always calling -viewWillDraw (which updates layout) before flushing
6986        layers. This now matches WebKit2 behavior.
6987
6988        * WebView/WebView.mm:
6989        (LayerFlushController::flushLayers):
6990
69912013-10-10  Andy Estes  <aestes@apple.com>
6992
6993        Add SPI for telling WebKit to prefer pictograph glyphs over monochrome ones
6994        https://bugs.webkit.org/show_bug.cgi?id=122608
6995
6996        Reviewed by Dan Bernstein.
6997
6998        Based on patches by Dan Bernstein.
6999
7000        * WebView/WebView.mm:
7001        (-[WebView _setFontFallbackPrefersPictographs:]): Called
7002        WebCore::Settings::setFontFallbackPrefersPictographs().
7003        * WebView/WebViewPrivate.h:
7004
70052013-10-10  Mark Rowe  <mrowe@apple.com>
7006
7007        <rdar://problem/13341666> WebKit should always build against an SDK.
7008
7009        Have all projects default to building against the OS X Internal SDK for the Production
7010        configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
7011        to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
7012
7013        Reviewed by Dan Bernstein.
7014
7015        * Configurations/Base.xcconfig:
7016        * Configurations/DebugRelease.xcconfig:
7017
70182013-10-08  Darin Adler  <darin@apple.com>
7019
7020        WebNetscapePluginView should no longer use deleteAllValues
7021        https://bugs.webkit.org/show_bug.cgi?id=122495
7022
7023        Reviewed by Anders Carlsson.
7024
7025        * Plugins/WebNetscapePluginView.h: Use unique_ptr for both the pointer to
7026        the timers hash table, and for the values in the hash table.
7027
7028        * Plugins/WebNetscapePluginView.mm:
7029        (-[WebNetscapePluginView stopTimers]): Rewrote loop so it works with unique_ptr.
7030        (-[WebNetscapePluginView startTimers]): Ditto.
7031        (-[WebNetscapePluginView fini]): Removed unneeded code to delete timers.
7032        (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]): Make
7033        the timers hash table with make-unique. Fixed the loop that chooses the timer
7034        ID so it won't ever try to use a deleted value, although that never happens
7035        in practice. Use HashMap::add instead of using both contains and set.
7036        Rearranged code so we don't need to make a raw pointer for the timer.
7037        (-[WebNetscapePluginView unscheduleTimer:]): Use remove instead of take/delete,
7038        since remove takes care of the deletion automatically since we are using the
7039        unique_ptr class.
7040
70412013-10-08  Darin Adler  <darin@apple.com>
7042
7043        Eliminate use of deleteAllValues in ProxyInstance
7044        https://bugs.webkit.org/show_bug.cgi?id=122499
7045
7046        Reviewed by Anders Carlsson.
7047
7048        * Plugins/Hosted/ProxyInstance.h: Use unique_ptr for map values in m_fields and m_methods.
7049
7050        * Plugins/Hosted/ProxyInstance.mm:
7051        (WebKit::ProxyInstance::~ProxyInstance): Removed calls to deleteAllValues.
7052        (WebKit::ProxyInstance::methodNamed): Use make_unique and get to deal with map entries
7053        that are unique_ptr. Also fixed a bug where this would do an expensive no-op if the map
7054        already had an entry with a null in it. We would call the plug-in, but eventually
7055        isNewEntry would be false so we would return null.
7056        (WebKit::ProxyInstance::fieldNamed): Use make_unique and get to deal with map entries
7057        that are unique_ptr.
7058
70592013-10-08  Darin Adler  <darin@apple.com>
7060
7061        Change NetscapePluginInstanceProxy::m_replies to use unique_ptr instead of deleteAllValues
7062        https://bugs.webkit.org/show_bug.cgi?id=122492
7063
7064        Reviewed by Andreas Kling.
7065
7066        * Plugins/Hosted/NetscapePluginHostManager.mm:
7067        (WebKit::NetscapePluginHostManager::instantiatePlugin): Use auto so this works with
7068        unique_ptr instead of auto_ptr.
7069        * Plugins/Hosted/NetscapePluginHostProxy.mm:
7070        (WKPCGetScriptableNPObjectReply): Use make_unique instead of using new directly.
7071        (WKPCBooleanReply): Ditto.
7072        (WKPCBooleanAndDataReply): Ditto.
7073        (WKPCInstantiatePluginReply): Ditto.
7074        * Plugins/Hosted/NetscapePluginInstanceProxy.h: Changed m_replies to map to unique_ptr
7075        instead of to a raw pointer.
7076        (WebKit::NetscapePluginInstanceProxy::setCurrentReply): Changed to take a unique_ptr
7077        instead of a raw pointer since this takes ownership of the pointer.
7078        (WebKit::NetscapePluginInstanceProxy::waitForReply): Changed to return a unique_ptr
7079        instead of a auto_ptr because that's better. Use unique_ptr inside the function
7080        too to avoid the need for an explicit delete.
7081        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
7082        (WebKit::NetscapePluginInstanceProxy::~NetscapePluginInstanceProxy): Removed the call to
7083        deleteAllValues.
7084        (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Removed unneeded initialization
7085        of a local variable that was already set in all code paths.
7086        (WebKit::NetscapePluginInstanceProxy::wheelEvent): Use auto so this works with unique_ptr
7087        instead of auto_ptr.
7088        (WebKit::NetscapePluginInstanceProxy::print): Ditto.
7089        (WebKit::NetscapePluginInstanceProxy::snapshot): Ditto. Ditto.
7090        (WebKit::NetscapePluginInstanceProxy::processRequestsAndWaitForReply): Changed to return
7091        a unique_ptr. Also removed an unneeded assertion.
7092        (WebKit::NetscapePluginInstanceProxy::createBindingsInstance): Use auto so this works
7093        with unique_ptr instead of auto_ptr.
7094
7095        * Plugins/Hosted/ProxyInstance.h: Changed return type of waitForReply to unique_ptr.
7096
7097        * Plugins/Hosted/ProxyInstance.mm:
7098        (WebKit::ProxyInstance::invoke): Use auto so this works with unique_ptr instead of auto_ptr.
7099        (WebKit::ProxyInstance::supportsInvokeDefaultMethod): Ditto.
7100        (WebKit::ProxyInstance::supportsConstruct): Ditto.
7101        (WebKit::ProxyInstance::getPropertyNames): Ditto.
7102        (WebKit::ProxyInstance::methodNamed): Ditto.
7103        (WebKit::ProxyInstance::fieldNamed): Ditto.
7104        (WebKit::ProxyInstance::fieldValue): Ditto.
7105        (WebKit::ProxyInstance::setFieldValue): Ditto.
7106
71072013-10-07  Sam Weinig  <sam@webkit.org>
7108
7109        CTTE: Use references in and around DragController
7110        https://bugs.webkit.org/show_bug.cgi?id=122427
7111
7112        Reviewed by Andreas Kling.
7113
7114        * WebCoreSupport/WebDragClient.h:
7115        * WebCoreSupport/WebDragClient.mm:
7116        (WebDragClient::actionMaskForDrag):
7117        (WebDragClient::willPerformDragDestinationAction):
7118        (WebDragClient::willPerformDragSourceAction):
7119        (WebDragClient::startDrag):
7120        (WebDragClient::declareAndWriteDragImage):
7121        * WebView/WebFrame.mm:
7122        (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
7123        * WebView/WebHTMLView.mm:
7124        (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
7125        * WebView/WebView.mm:
7126        (-[WebView draggingEntered:]):
7127        (-[WebView draggingUpdated:]):
7128        (-[WebView draggingExited:]):
7129        (-[WebView performDragOperation:]):
7130
71312013-10-05  Sam Weinig  <sam@webkit.org>
7132
7133        CTTE: Thread references through markup.h
7134        https://bugs.webkit.org/show_bug.cgi?id=122403
7135
7136        Reviewed by Darin Adler and Andreas Kling.
7137
7138        * DOM/WebDOMOperations.mm:
7139        (-[DOMNode markupString]):
7140        (-[DOMRange markupString]):
7141        * WebView/WebFrame.mm:
7142        (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
7143        (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
7144
71452013-10-05  Sam Weinig  <sam@webkit.org>
7146
7147        CTTE: Pass DocumentWriter around as a reference
7148        https://bugs.webkit.org/show_bug.cgi?id=122396
7149
7150        Reviewed by Andreas Kling.
7151
7152        * WebView/WebFrame.mm:
7153        (-[WebFrame _canProvideDocumentSource]):
7154
71552013-10-04  Alexey Proskuryakov  <ap@apple.com>
7156
7157        Don't preflight spell checker when calling -setContinuousSpellCheckingEnabled repeatedly
7158        https://bugs.webkit.org/show_bug.cgi?id=122329
7159
7160        Reviewed by Darin Adler.
7161
7162        * WebView/WebView.mm: (-[WebView setContinuousSpellCheckingEnabled:]): Don't do any
7163        work if preference didn't change (continuousSpellCheckingEnabled is a static that
7164        starts with false).
7165
71662013-10-04  Anders Carlsson  <andersca@apple.com>
7167
7168        FramePolicyFunction should be an std::function
7169        https://bugs.webkit.org/show_bug.cgi?id=122362
7170
7171        Reviewed by Darin Adler.
7172
7173        * WebCoreSupport/WebFrameLoaderClient.h:
7174        * WebCoreSupport/WebFrameLoaderClient.mm:
7175        (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
7176        (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
7177        (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
7178        (WebFrameLoaderClient::dispatchWillSubmitForm):
7179
71802013-10-04  Mark Lam  <mark.lam@apple.com>
7181
7182        Change ScriptDebugServer to use DebuggerCallFrame instead of JavaScriptCallFrame.
7183        https://bugs.webkit.org/show_bug.cgi?id=121969.
7184
7185        Reviewed by Geoffrey Garen.
7186
7187        1. Make JavaScriptCallFrame a thin shell around the DebuggerCallFrame.
7188           DebuggerCallFrame now tracks whether it is valid instead of needing
7189           JavaScriptCallFrame do it.
7190        2. ScriptDebugServer now only instantiates an DebuggerCallFrame when needed
7191           just before it pauses and calls back to its client, and then invalidates
7192           it immediately when the callback returns. Every subsequent callback to
7193           the client will use a new instance of the DebuggerCallFrame.
7194        3. Similarly, ScriptDebugServer now only creates a JavaScriptCallFrame when
7195           it "pauses".
7196        4. DebuggerCallFrame only creates its caller DebuggerCallFrame when
7197           it is needed i.e. when the client calls callerFrame(). Similarly,
7198           JavaScriptCallFrame only creates its caller when it's requested.
7199        5. DebuggerCallFrame's line() and column() now returns a base-zero int.
7200        6. WebScriptDebugDelegate now only caches the functionName of the frame
7201           instead of the entire DebuggerCallFrame because that is all that is
7202           needed.
7203        7. Also removed evaluateInGlobalCallFrame() which is not used anywhere.
7204
7205        * WebView/WebScriptDebugDelegate.mm:
7206        (-[WebScriptCallFramePrivate dealloc]):
7207        (-[WebScriptCallFrame _initWithGlobalObject:functionName:exceptionValue:JSC::]):
7208        (-[WebScriptCallFrame functionName]):
7209        (-[WebScriptCallFrame exception]):
7210        * WebView/WebScriptDebugger.mm:
7211        (WebScriptDebugger::exception):
7212
72132013-10-04  Anders Carlsson  <andersca@apple.com>
7214
7215        Remove some unneeded code from WidgetMac
7216        https://bugs.webkit.org/show_bug.cgi?id=122355
7217
7218        Reviewed by Dan Bernstein.
7219
7220        Remove code to handle the visible rect changing, it's not needed anymore since we always put Netscape plug-ins into their own layers now.
7221
7222        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
7223        * Plugins/WebBaseNetscapePluginView.h:
7224        * Plugins/WebBaseNetscapePluginView.mm:
7225
72262013-10-04  Daniel Bates  <dabates@apple.com>
7227
7228        [iOS] Upstream disk image cache
7229        https://bugs.webkit.org/show_bug.cgi?id=121985
7230
7231        Reviewed by Joseph Pecoraro.
7232
7233        * Misc/WebCache.mm:
7234        (+[WebCache statistics]):
7235        * WebView/WebDataSource.mm:
7236        (BufferMemoryMapped): Added.
7237        (-[WebDataSource _setAllowToBeMemoryMapped]): Added.
7238        (-[WebDataSource setDataSourceDelegate:]): Added.
7239        (-[WebDataSource dataSourceDelegate]): Added.
7240        (-[WebDataSource dealloc]):
7241        * WebView/WebDataSourcePrivate.h: Declared private delegate
7242        protocol, WebDataSourcePrivateDelegate.
7243        * WebView/WebPreferenceKeysPrivate.h:
7244        * WebView/WebPreferences.mm:
7245        (+[WebPreferences initialize]):
7246        (-[WebPreferences diskImageCacheEnabled]): Added.
7247        (-[WebPreferences setDiskImageCacheEnabled:]): Added.
7248        (-[WebPreferences diskImageCacheMinimumImageSize]): Added.
7249        (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Added.
7250        (-[WebPreferences diskImageCacheMaximumCacheSize]): Added.
7251        (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Added.
7252        (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Added.
7253        (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Added.
7254        * WebView/WebView.mm:
7255        (-[WebView _commonInitializationWithFrameName:groupName:]):
7256        (-[WebView _preferencesChanged:]):
7257
72582013-10-04  Anders Carlsson  <andersca@apple.com>
7259
7260        Remove WebAssertions.h
7261        https://bugs.webkit.org/show_bug.cgi?id=122328
7262
7263        Reviewed by Jessie Berlin.
7264
7265        * Misc/WebAssertions.h: Removed.
7266
72672013-10-03  Anders Carlsson  <andersca@apple.com>
7268
7269        Remove WebNSNotificationCenterExtras
7270        https://bugs.webkit.org/show_bug.cgi?id=122316
7271
7272        Reviewed by Dan Bernstein.
7273
7274        Use dispatch_async to ensure that notifications are posted on the main thread.
7275
7276        * Misc/WebIconDatabase.mm:
7277        (-[WebIconDatabase _sendNotificationForURL:]):
7278        (-[WebIconDatabase _sendDidRemoveAllIconsNotification]):
7279        * Misc/WebNSNotificationCenterExtras.h: Removed.
7280        * Misc/WebNSNotificationCenterExtras.m: Removed.
7281
72822013-10-03  Sam Weinig  <sam@webkit.org>
7283
7284        Remove shouldRubberBandInDirection from the WKBundlePageUIClient
7285        https://bugs.webkit.org/show_bug.cgi?id=122309
7286
7287        Reviewed by Andreas Kling.
7288
7289        * WebCoreSupport/WebChromeClient.h:
7290
72912013-10-03  Anders Carlsson  <andersca@apple.com>
7292
7293        Ignore deprecation warnings
7294        https://bugs.webkit.org/show_bug.cgi?id=122302
7295
7296        Reviewed by Mark Rowe.
7297
7298        * Misc/WebIconDatabase.mm:
7299        (-[WebIconDatabase _scaleIcon:toSize:]):
7300        (webGetNSImage):
7301        * Misc/WebNSImageExtras.m:
7302        (-[NSImage _web_scaleToMaxSize:]):
7303        (-[NSImage _web_dissolveToFraction:]):
7304        * Misc/WebNSViewExtras.m:
7305        (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
7306        (-[NSView _web_convertRect:toView:]):
7307        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
7308        (WebKit::NetscapePluginInstanceProxy::mouseEvent):
7309        * Plugins/Hosted/WebTextInputWindowController.m:
7310        (-[WebTextInputPanel _interpretKeyEvent:string:]):
7311        * Plugins/WebBaseNetscapePluginView.mm:
7312        (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
7313        * WebCoreSupport/WebDragClient.mm:
7314        (WebDragClient::startDrag):
7315        * WebInspector/WebNodeHighlight.mm:
7316        (-[WebNodeHighlight _computeHighlightWindowFrame]):
7317        * WebView/WebFullScreenController.mm:
7318        (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
7319        (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
7320        * WebView/WebHTMLView.mm:
7321        (+[WebHTMLView _postFlagsChangedEvent:]):
7322        (-[WebHTMLView _updateMouseoverWithFakeEvent]):
7323        (-[WebHTMLView _autoscroll]):
7324        (-[WebHTMLView mouseDown:]):
7325        (-[WebHTMLView mouseDragged:]):
7326        (-[WebHTMLView mouseUp:]):
7327        (-[WebHTMLView accessibilityHitTest:]):
7328        (-[WebHTMLView _executeSavedKeypressCommands]):
7329        (-[WebHTMLView attachRootLayer:]):
7330        (-[WebHTMLView textStorage]):
7331        (-[WebHTMLView _updateSelectionForInputManager]):
7332        * WebView/WebTextCompletionController.mm:
7333        (-[WebTextCompletionController _buildUI]):
7334        (-[WebTextCompletionController _placePopupWindow:]):
7335
73362013-10-01  Sam Weinig  <sam@webkit.org>
7337
7338        CTTE: DOMWrapperWorlds should be passed around by reference
7339        https://bugs.webkit.org/show_bug.cgi?id=122206
7340
7341        Reviewed by Andreas Kling.
7342
7343        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
7344        (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
7345        (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
7346        (WebKit::NetscapePluginInstanceProxy::evaluate):
7347        * WebCoreSupport/WebFrameLoaderClient.h:
7348        * WebCoreSupport/WebFrameLoaderClient.mm:
7349        * WebView/WebFrame.mm:
7350        (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
7351        (-[WebFrame _globalContextForScriptWorld:]):
7352        (-[WebFrame jsWrapperForNode:inScriptWorld:]):
7353        * WebView/WebScriptWorld.mm:
7354        (+[WebScriptWorld standardWorld]):
7355        (+[WebScriptWorld findOrCreateWorld:]):
7356        * WebView/WebScriptWorldInternal.h:
7357        * WebView/WebView.mm:
7358        (-[WebView _injectOutlookQuirksScript]):
7359        (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
7360        (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
7361        (+[WebView _removeUserScriptFromGroup:world:url:]):
7362        (+[WebView _removeUserStyleSheetFromGroup:world:url:]):
7363        (+[WebView _removeUserScriptsFromGroup:world:]):
7364        (+[WebView _removeUserStyleSheetsFromGroup:world:]):
7365
73662013-09-30  Sam Weinig  <sam@webkit.org>
7367
7368        Remove support for DOMFileSystem
7369        https://bugs.webkit.org/show_bug.cgi?id=122137
7370
7371        Reviewed by Anders Carlsson.
7372
7373        * Configurations/FeatureDefines.xcconfig:
7374
73752013-09-30  Benjamin Poulain  <benjamin@webkit.org>
7376
7377        Remove the code guarded by STYLE_SCOPED
7378        https://bugs.webkit.org/show_bug.cgi?id=122123
7379
7380        Reviewed by Anders Carlsson.
7381
7382        * Configurations/FeatureDefines.xcconfig:
7383
73842013-09-30  Mark Rowe  <mrowe@apple.com>
7385
7386        Fix the build when building against an SDK.
7387
7388        Xcode helpfully prepends $(SDKROOT) to the paths in FRAMEWORK_SEARCH_PATHS when generating
7389        the compiler command lines. It can't know to do this for the system framework search paths
7390        we add manually via OTHER_CFLAGS though, so we need to prefix them with $(SDKROOT) ourself.
7391
7392        * Configurations/WebKit.xcconfig:
7393
73942013-09-29  Mark Rowe  <mrowe@apple.com>
7395
7396        Fix the Lion build.
7397
7398        Ensure that C++ and Objective-C++ files build with the right compiler flags.
7399
7400        * Configurations/WebKit.xcconfig:
7401
74022013-09-28  Mark Rowe  <mrowe@apple.com>
7403
7404        Fix some failures with newer versions of clang.
7405
7406        Some CoreGraphics headers generate warnings under newer versions of clang. Since they're system headers the warnings would
7407        usually be suppressed, but we're adding the frameworks to the non-system framework search path so they're no longer treated
7408        as system headers. We address this by removing the system paths from FRAMEWORK_SEARCH_PATHS and using the -iframework compiler
7409        flag in OTHER_CFLAGS to add the paths to the system framework search path. We have to set OTHER_CFLAGS at the target level
7410        in order for it to coexist with the ASAN-related OTHER_CFLAGS that's set in DebugRelease.xcconfig.
7411
7412        Reviewed by Dan Bernstein.
7413
7414        * Configurations/DebugRelease.xcconfig:
7415        * Configurations/WebKit.xcconfig:
7416
74172013-09-28  Mark Rowe  <mrowe@apple.com>
7418
7419        Take Xcode's advice and enable some extra warnings.
7420
7421        Reviewed by Sam Weinig.
7422
7423        * Configurations/Base.xcconfig:
7424
74252013-09-28  Darin Adler  <darin@apple.com>
7426
7427        Add Frame::mainFrame and Frame::isMainFrame
7428        https://bugs.webkit.org/show_bug.cgi?id=122064
7429
7430        Reviewed by Andreas Kling.
7431
7432        * WebCoreSupport/WebFrameLoaderClient.mm:
7433        (WebFrameLoaderClient::canHandleRequest):
7434        (WebFrameLoaderClient::transitionToCommittedForNewPage):
7435        * WebView/WebFrameView.mm:
7436        (-[WebFrameView _install]):
7437        Call isMainFrame.
7438
74392013-09-28  Mark Rowe  <mrowe@apple.com>
7440
7441        WebKit fails to build with newer versions of clang.
7442
7443        Reviewed by Sam Weinig.
7444
7445        * Carbon/HIWebView.mm: Remove an unused function.
7446        * History/BinaryPropertyList.cpp: #if a constant that's only used in 64-bit.
7447        * Misc/WebIconDatabase.mm: Remove two unused constants.
7448        * Plugins/WebBaseNetscapePluginView.mm: Remove an unused constant.
7449        * WebCoreSupport/WebEditorClient.mm: Ditto.
7450
74512013-09-27  Enrica Casucci  <enrica@apple.com>
7452
7453        Upstream changes to Pasteboard implementation for iOS.
7454        https://bugs.webkit.org/show_bug.cgi?id=121818
7455
7456        Reviewed by Benjamin Poulain.
7457
7458        * WebCoreSupport/WebPlatformStrategies.h:
7459        * WebCoreSupport/WebPlatformStrategies.mm:
7460        (WebPlatformStrategies::writeToPasteboard):
7461        (WebPlatformStrategies::getPasteboardItemsCount):
7462        (WebPlatformStrategies::readBufferFromPasteboard):
7463        (WebPlatformStrategies::readURLFromPasteboard):
7464        (WebPlatformStrategies::readStringFromPasteboard):
7465        (WebPlatformStrategies::changeCount):
7466
74672013-09-26  Darin Adler  <darin@apple.com>
7468
7469        rename KURL to URL
7470        https://bugs.webkit.org/show_bug.cgi?id=16214
7471
7472        Reviewed by Andreas Kling.
7473
7474        * many files: Renamed, using script.
7475
74762013-09-06  Jer Noble  <jer.noble@apple.com>
7477
7478        [Mac] Implement the media controls in JavaScript.
7479        https://bugs.webkit.org/show_bug.cgi?id=120895
7480
7481        Reviewed by Dean Jackson.
7482
7483        Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
7484
7485        * Configurations/FeatureDefines.xcconfig:
7486
74872013-09-27  Darin Adler  <darin@apple.com>
7488
7489        Add empty MainFrame class
7490        https://bugs.webkit.org/show_bug.cgi?id=121770
7491
7492        Reviewed by Andreas Kling.
7493
7494        * WebCoreSupport/WebDragClient.mm:
7495        * WebCoreSupport/WebInspectorClient.mm:
7496        * WebCoreSupport/WebPlatformStrategies.mm:
7497        * WebView/WebFrame.mm:
7498        * WebView/WebHTMLView.mm:
7499        * WebView/WebView.mm:
7500        Include MainFrame.h instead of Frame.h as needed.
7501
75022013-09-26  Eric Carlson  <eric.carlson@apple.com>
7503
7504        [MediaStream] make MediaStream testable
7505        https://bugs.webkit.org/show_bug.cgi?id=121967
7506
7507        Reviewed by Dean Jackson.
7508
7509        * WebCoreSupport/WebUserMediaClient.h: Added.
7510        * WebCoreSupport/WebUserMediaClient.mm: Added.
7511
7512        * WebView/WebUIDelegatePrivate.h: Declare decidePolicyForUserMediaRequestFromOrigin:listener:
7513
7514        * WebView/WebView.mm:
7515        (-[WebView _commonInitializationWithFrameName:groupName:]): Register WebUserMediaClient.
7516        (-[WebView _setUserMediaClient:]): New.
7517        (-[WebView _userMediaClient]): New.
7518        * WebView/WebViewData.h:
7519        * WebView/WebViewPrivate.h:
7520
75212013-09-25  Sam Weinig  <sam@webkit.org>
7522
7523        Pass a JSC::VM& to JS bindings object creation functions, rather than a JSC::ExecState*
7524        https://bugs.webkit.org/show_bug.cgi?id=121934
7525
7526        Reviewed by Geoffrey Garen.
7527
7528        * Plugins/Hosted/ProxyInstance.mm:
7529        (WebKit::ProxyInstance::newRuntimeObject):
7530        * Plugins/Hosted/ProxyRuntimeObject.h:
7531        (WebKit::ProxyRuntimeObject::create):
7532        * Plugins/Hosted/ProxyRuntimeObject.mm:
7533        (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
7534        (WebKit::ProxyRuntimeObject::finishCreation):
7535
75362013-09-25  Brady Eidson  <beidson@apple.com>
7537
7538        Enable the IndexedDB build on Mac, but leave the feature non-functional
7539        https://bugs.webkit.org/show_bug.cgi?id=121918
7540
7541        Reviewed by Alexey Proskuryakov.
7542
7543        * Configurations/FeatureDefines.xcconfig:
7544
75452013-09-25  Commit Queue  <commit-queue@webkit.org>
7546
7547        Unreviewed, rolling out r156432.
7548        http://trac.webkit.org/changeset/156432
7549        https://bugs.webkit.org/show_bug.cgi?id=121932
7550
7551        some integer conversion things that need brady to fix
7552        (Requested by thorton on #webkit).
7553
7554        * Configurations/FeatureDefines.xcconfig:
7555
75562013-09-25  Brady Eidson  <beidson@apple.com>
7557
7558        Enable the IndexedDB build on Mac, but leave the feature non-functional
7559        https://bugs.webkit.org/show_bug.cgi?id=121918
7560
7561        Reviewed by Alexey Proskuryakov.
7562
7563        * Configurations/FeatureDefines.xcconfig:
7564
75652013-09-25  Brent Fulgham  <bfulgham@apple.com>
7566
7567        Refactor RuntimeEnabledFeatures as a Singleton.
7568        https://bugs.webkit.org/show_bug.cgi?id=121883.
7569
7570        Reviewed by Jer Noble.
7571
7572        * WebView/WebView.mm:
7573        (-[WebView _preferencesChanged:]): Use singleton accessor.
7574        (-[WebView _setDashboardBehavior:to:]): Ditto.
7575
75762013-09-25  Brady Eidson  <beidson@apple.com>
7577
7578        FeatureDefine.xcconfig cleanup (They should all be identical).
7579        https://bugs.webkit.org/show_bug.cgi?id=121921
7580
7581        Reviewed by Mark Rowe.
7582
7583        * Configurations/FeatureDefines.xcconfig:
7584
75852013-09-24  Mark Lam  <mark.lam@apple.com>
7586
7587        Change JSC debug hooks to pass a CallFrame* instead of a DebuggerCallFrame.
7588        https://bugs.webkit.org/show_bug.cgi?id=121867.
7589
7590        Reviewed by Geoffrey Garen.
7591
7592        * WebView/WebScriptDebugDelegate.mm:
7593        (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:exceptionValue:JSC::]):
7594        (-[WebScriptCallFrame exception]):
7595        * WebView/WebScriptDebugger.h:
7596        * WebView/WebScriptDebugger.mm:
7597        (WebScriptDebugger::exception):
7598
75992013-09-24  Enrica Casucci  <enrica@apple.com>
7600
7601        Upstream changes to Pasteboard implementation for iOS.
7602        https://bugs.webkit.org/show_bug.cgi?id=121818
7603
7604        Reviewed by Darin Adler.
7605
7606        * WebCoreSupport/WebPlatformStrategies.h:
7607        * WebCoreSupport/WebPlatformStrategies.mm:
7608        (WebPlatformStrategies::writeToPasteboard):
7609
76102013-09-24  Mark Rowe  <mrowe@apple.com>
7611
7612        <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
7613
7614        Reviewed by Dan Bernstein.
7615
7616        * Configurations/Base.xcconfig:
7617
76182013-09-21  Mark Lam  <mark.lam@apple.com>
7619
7620        Remove unused code in WebKit/mac's WebScriptDebugDelegate.
7621        https://bugs.webkit.org/show_bug.cgi?id=121706.
7622
7623        Reviewed by Timothy Hatcher.
7624
7625        WebScriptDebugDelegate's didEnterCallFrame, willExecuteStatement,
7626        and willLeaveCallFrame are not in use. Removed them and all methods
7627        and fields used for supporting them.
7628
7629        * WebView/WebDelegateImplementationCaching.h:
7630        * WebView/WebScriptDebugDelegate.h:
7631        * WebView/WebScriptDebugDelegate.mm:
7632        (-[WebScriptCallFramePrivate dealloc]):
7633        (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:]):
7634        * WebView/WebScriptDebugger.h:
7635        (WebScriptDebugger::globalObject):
7636        (WebScriptDebugger::callEvent):
7637        (WebScriptDebugger::atStatement):
7638        (WebScriptDebugger::returnEvent):
7639        (WebScriptDebugger::willExecuteProgram):
7640        (WebScriptDebugger::didExecuteProgram):
7641        (WebScriptDebugger::didReachBreakpoint):
7642        * WebView/WebScriptDebugger.mm:
7643        (WebScriptDebugger::WebScriptDebugger):
7644        (WebScriptDebugger::exception):
7645        * WebView/WebView.mm:
7646        (-[WebView _cacheScriptDebugDelegateImplementations]):
7647
76482013-09-18  Anders Carlsson  <andersca@apple.com>
7649
7650        RefPtrHashMap should work with move only types
7651        https://bugs.webkit.org/show_bug.cgi?id=121564
7652
7653        Reviewed by Andreas Kling.
7654
7655        * Plugins/Hosted/ProxyInstance.mm:
7656        (WebKit::ProxyInstance::methodNamed):
7657        (WebKit::ProxyInstance::fieldNamed):
7658
76592013-09-16  Enrica Casucci  <enrica@apple.com>
7660
7661        Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
7662        https://bugs.webkit.org/show_bug.cgi?id=121464
7663
7664        Reviewed by Darin Adler.
7665
7666        This method was only implemented in WebEditorClient.mm for Mac where it was
7667        calling a private delegate that is no longer in use.
7668
7669        * DefaultDelegates/WebDefaultEditingDelegate.m:
7670        * WebCoreSupport/WebEditorClient.h:
7671        * WebCoreSupport/WebEditorClient.mm:
7672        * WebView/WebEditingDelegatePrivate.h:
7673
76742013-09-13  Anders Carlsson  <andersca@apple.com>
7675
7676        Use nullptr instead of 0 in calls to HashMap::add
7677        https://bugs.webkit.org/show_bug.cgi?id=121322
7678
7679        Reviewed by Sam Weinig.
7680
7681        * Plugins/Hosted/NetscapePluginHostManager.mm:
7682        (WebKit::NetscapePluginHostManager::hostForPlugin):
7683
76842013-09-13  Dan Bernstein  <mitz@apple.com>
7685
7686        [mac WK1] Introduce WebViewWillCloseNotification
7687        https://bugs.webkit.org/show_bug.cgi?id=121321
7688
7689        Reviewed by Sam Weinig.
7690
7691        * WebKit.exp: Exported WebViewWillCloseNotification.
7692        * WebView/WebView.mm:
7693        (-[WebView _close]): Send WebViewWillCloseNotification before closing the WebView.
7694        * WebView/WebViewPrivate.h: Declared WebViewWillCloseNotification.
7695
76962013-09-13  Tim Horton  <timothy_horton@apple.com>
7697
7698        REGRESSION (r155615): Lots of reftests fail with single line or single pixel differences
7699        https://bugs.webkit.org/show_bug.cgi?id=121245
7700
7701        Reviewed by Darin Adler.
7702
7703        Similar to https://bugs.webkit.org/show_bug.cgi?id=120963,
7704        we need to manually ensure that some pieces of persistent
7705        CoreGraphics state are restored after PDFKit changes them.
7706
7707        In this case, we bookend our restoration around the various
7708        _recursiveDisplay... functions that we also use in WebHTMLView.
7709
7710        * WebView/WebPDFView.mm:
7711        (-[WebPDFView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
7712        (-[WebPDFView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
7713        (-[WebPDFView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
7714        (-[WebPDFView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
7715
77162013-09-12  Anders Carlsson  <andersca@apple.com>
7717
7718        SharedBuffer::createNSData should return a RetainPtr<NSData>
7719        https://bugs.webkit.org/show_bug.cgi?id=121237
7720
7721        Reviewed by Darin Adler.
7722
7723        Update for WebCore changes. This also fixes a leak where we'd create an NSFileWrapper from NSData but never release the data.
7724
7725        * WebView/WebDataSource.mm:
7726        (-[WebDataSource data]):
7727        * WebView/WebHTMLRepresentation.mm:
7728        (-[WebHTMLRepresentation documentSource]):
7729        * WebView/WebHTMLView.mm:
7730        (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
7731        * WebView/WebResource.mm:
7732        (-[WebResource encodeWithCoder:]):
7733        (-[WebResource data]):
7734
77352013-09-12  Mark Lam  <mark.lam@apple.com>
7736
7737        Change debug hooks to pass sourceID and position info via the DebuggerCallFrame.
7738        https://bugs.webkit.org/show_bug.cgi?id=121214.
7739
7740        Reviewed by Geoffrey Garen.
7741
7742        * webview/WebScriptDebugger.h:
7743        * WebView/WebScriptDebugger.mm:
7744        (WebScriptDebugger::WebScriptDebugger):
7745        (WebScriptDebugger::callEvent):
7746        (WebScriptDebugger::atStatement):
7747        (WebScriptDebugger::returnEvent):
7748        (WebScriptDebugger::exception):
7749        (WebScriptDebugger::willExecuteProgram):
7750        (WebScriptDebugger::didExecuteProgram):
7751        (WebScriptDebugger::didReachBreakpoint):
7752
77532013-09-11  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
7754
7755        Generate more HTML type checks and casting
7756        https://bugs.webkit.org/show_bug.cgi?id=121080
7757
7758        Reviewed by Andreas Kling.
7759
7760        Clean-up remained functions of HTML elements using auto-generated isFooElement(),
7761        and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
7762
7763        Besides this patch clean-up unnecessary checks which are being supported by
7764        auto-generated isFooElement().
7765
7766        No new tests, no behavior change.
7767
7768        * Plugins/WebPluginController.mm:
7769        * WebCoreSupport/WebChromeClient.mm:
7770        (WebChromeClient::supportsFullscreenForNode):
7771        * WebView/WebView.mm:
7772        (-[WebView _enterFullscreenForNode:WebCore::]):
7773
77742013-09-10  Daniel Bates  <dabates@apple.com>
7775
7776        [iOS] Upstream text autosizing
7777        https://bugs.webkit.org/show_bug.cgi?id=121111
7778
7779        Reviewed by Andy Estes and Sam Weinig.
7780
7781        * WebView/WebFrame.mm:
7782        (-[WebFrame resetTextAutosizingBeforeLayout]): Added.
7783        (-[WebFrame _setVisibleSize:]): Added.
7784        (-[WebFrame _setTextAutosizingWidth:]): Added.
7785        * WebView/WebFramePrivate.h:
7786        * WebView/WebPreferenceKeysPrivate.h:
7787        * WebView/WebPreferences.mm:
7788        (+[WebPreferences initialize]):
7789        (-[WebPreferences _setMinimumZoomFontSize:]): Added.
7790        (-[WebPreferences _minimumZoomFontSize]): Added.
7791
77922013-09-09  Dean Jackson  <dino@apple.com>
7793
7794        [WebGL] Allow multithreaded OpenGL contexts
7795        https://bugs.webkit.org/show_bug.cgi?id=121062
7796
7797        Reviewed by Simon Fraser.
7798
7799        Expose a new preference "multithreadedWebGLEnabled".
7800
7801        * WebView/WebPreferenceKeysPrivate.h:
7802        * WebView/WebPreferences.mm:
7803        (+[WebPreferences initialize]):
7804        (-[WebPreferences multithreadedWebGLEnabled]):
7805        (-[WebPreferences setMultithreadedWebGLEnabled:]):
7806        * WebView/WebPreferencesPrivate.h:
7807        * WebView/WebView.mm:
7808        (-[WebView _preferencesChanged:]):
7809
78102013-09-09  Dean Jackson  <dino@apple.com>
7811
7812        Enable WebGL for OS X nightlies
7813        https://bugs.webkit.org/show_bug.cgi?id=121040
7814
7815        Reviewed by Beth Dakin.
7816
7817        * WebView/WebPreferences.mm:
7818        (+[WebPreferences initialize]): Set WebPreference to YES.
7819
78202013-09-06  Ryosuke Niwa  <rniwa@webkit.org>
7821
7822        Range::ownerDocument should return Document&
7823        https://bugs.webkit.org/show_bug.cgi?id=120908
7824
7825        Reviewed by Andreas Kling.
7826
7827        * WebView/WebPDFView.mm:
7828        (isFrameInRange):
7829
78302013-09-05  Andreas Kling  <akling@apple.com>
7831
7832        ScrollView::children() should return a reference.
7833        <https://webkit.org/b/120795>
7834
7835        Reviewed by Anders Carlsson.
7836
7837        * WebView/WebView.mm:
7838        (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
7839
78402013-09-04  Mark Rowe  <mrowe@apple.com>
7841
7842        <https://webkit.org/b/120707> Make WebKit's localizable strings mechanism usable under ARC
7843
7844        WebKit's localizable strings mechanism is also used outside of WebKit so it needs to work
7845        both with and without ARC.
7846
7847        Reviewed by Anders Carlsson.
7848
7849        * Misc/WebLocalizableStrings.h: Mark the bundle member as unretained. This matches how the
7850        member is used within WebLocalizableStrings.mm.
7851
78522013-09-02  Darin Adler  <darin@apple.com>
7853
7854        [Mac] No need for HardAutorelease, which is same as CFBridgingRelease
7855        https://bugs.webkit.org/show_bug.cgi?id=120569
7856
7857        Reviewed by Andy Estes.
7858
7859        * Misc/WebNSFileManagerExtras.mm:
7860        (-[NSFileManager _webkit_startupVolumeName]): Removed some unneeded locals.
7861        Got rid of the pointless ref/leakRef/HardAutorelease dance, and replaced it
7862        with a [[x copy] autorelease].
7863
7864        * Misc/WebNSURLExtras.mm:
7865        (-[NSURL _web_URLWithLowercasedScheme]): Use CFBridgingRelease, and got rid
7866        of unneeded type casts.
7867
7868        * Plugins/WebBasePluginPackage.mm:
7869        (+[WebBasePluginPackage preferredLocalizationName]): Use CFBridgingRelease.
7870        * WebView/WebPDFRepresentation.mm:
7871        (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Ditto.
7872
7873        * WebView/WebView.mm:
7874        (+[WebView _setCacheModel:]): Use CFBridgingRelease and got rid of unneeded
7875        type cast.
7876
78772013-08-30  Antti Koivisto  <antti@apple.com>
7878
7879        Remove code behind ENABLE(DIALOG_ELEMENT)
7880        https://bugs.webkit.org/show_bug.cgi?id=120467
7881
7882        Reviewed by Darin Adler.
7883
7884        * Configurations/FeatureDefines.xcconfig:
7885
78862013-08-29  Sam Weinig  <sam@webkit.org>
7887
7888        Add ENABLE gaurds for Promises
7889        https://bugs.webkit.org/show_bug.cgi?id=120488
7890
7891        Reviewed by Andreas Kling.
7892
7893        * Configurations/FeatureDefines.xcconfig:
7894
78952013-08-29  Joseph Pecoraro  <pecoraro@apple.com>
7896
7897        Web Inspector: Download Web Archive of Inspected Page
7898        https://bugs.webkit.org/show_bug.cgi?id=119774
7899
7900        Reviewed by Timothy Hatcher.
7901
7902        Update to support InspectorFrontendHost.save's new base64Encoded
7903        parameter. It means the incoming content is binary data, not a string.
7904
7905        * WebCoreSupport/WebInspectorClient.h:
7906        * WebCoreSupport/WebInspectorClient.mm:
7907        (WebInspectorFrontendClient::save):
7908
79092013-08-28  Chris Curtis  <chris_curtis@apple.com>
7910
7911        https://bugs.webkit.org/show_bug.cgi?id=119548
7912        Refactoring Exception throws.
7913
7914        Reviewed by Geoffrey Garen.
7915        
7916        Moved setting an exception into the vm, These functions changed to use the new functionality.
7917
7918        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
7919        (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
7920        * Plugins/Hosted/ProxyInstance.mm:
7921        (WebKit::ProxyInstance::invokeMethod):
7922
79232013-08-27  Anders Carlsson  <andersca@apple.com>
7924
7925        Fix build.
7926
7927        * Plugins/Hosted/ProxyInstance.h:
7928        * Plugins/Hosted/ProxyInstance.mm:
7929        (WebKit::ProxyInstance::methodNamed):
7930        (WebKit::ProxyInstance::fieldNamed):
7931
79322013-08-23  Andy Estes  <aestes@apple.com>
7933
7934        Fix issues found by the Clang Static Analyzer
7935        https://bugs.webkit.org/show_bug.cgi?id=120230
7936
7937        Reviewed by Darin Adler.
7938
7939        * Misc/WebNSFileManagerExtras.mm:
7940        (-[NSFileManager _webkit_startupVolumeName]): Used HardAutorelease()
7941        instead of WebCFAutorelease().
7942        * Misc/WebNSObjectExtras.h: Removed definition of WebCFAutorelease().
7943        * Misc/WebNSURLExtras.mm:
7944        (-[NSURL _web_URLWithLowercasedScheme]): Used HardAutorelease()
7945        instead of WebCFAutorelease().
7946        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
7947        (-[WebHostedNetscapePluginView createPluginLayer]): Stop leaking
7948        CGColors (CALayer retains its backgroundColor property despite the
7949        property attributes claiming otherwise).
7950        * Plugins/WebBasePluginPackage.mm:
7951        (+[WebBasePluginPackage preferredLocalizationName]): Used
7952        HardAutorelease() instead of WebCFAutorelease().
7953        * WebView/WebDeviceOrientationProviderMock.mm:
7954        (-[WebDeviceOrientationProviderMockInternal lastOrientation]): Stop
7955        leaking WebDeviceOrientations.
7956        * WebView/WebPDFRepresentation.mm:
7957        (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Used
7958        HardAutorelease() instead of WebCFAutorelease().
7959        * WebView/WebView.mm:
7960        (+[WebView _setCacheModel:]): Ditto.
7961        (-[WebView _removeObjectForIdentifier:]): Ditto.
7962
79632013-08-26  Alexey Proskuryakov  <ap@apple.com>
7964
7965        [Mac] can-read-in-dragstart-event.html and can-read-in-copy-and-cut-events.html fail
7966        https://bugs.webkit.org/show_bug.cgi?id=113094
7967
7968        Reviewed by Darin Adler.
7969
7970        Return new pasteboard change count from all functions that change it.
7971
7972        * WebCoreSupport/WebPlatformStrategies.h:
7973        * WebCoreSupport/WebPlatformStrategies.mm:
7974        (WebPlatformStrategies::copy):
7975        (WebPlatformStrategies::changeCount):
7976        (WebPlatformStrategies::addTypes):
7977        (WebPlatformStrategies::setTypes):
7978        (WebPlatformStrategies::setBufferForType):
7979        (WebPlatformStrategies::setPathnamesForType):
7980        (WebPlatformStrategies::setStringForType):
7981
79822013-08-26  Andreas Kling  <akling@apple.com>
7983
7984        Unreviewed build fix.
7985
7986        * WebView/WebFrame.mm:
7987        (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
7988
79892013-08-26  Andreas Kling  <akling@apple.com>
7990
7991        WebCore: Let Page create the main Frame.
7992        <https://webkit.org/b/119964>
7993
7994        Reviewed by Anders Carlsson.
7995
7996        * WebCoreSupport/WebFrameLoaderClient.h:
7997        (WebFrameLoaderClient::setWebFrame):
7998
7999            Make it possible to construct a WebFrameLoaderClient with a null WebFrame*.
8000            A WebFrame* is later hooked up with a call to setWebFrame().
8001
8002        * WebView/WebFrame.mm:
8003        (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
8004
8005            Customized this method to wrap the Page::mainFrame() instead of creating a
8006            new Frame.
8007
8008        * WebView/WebView.mm:
8009        (-[WebView _commonInitializationWithFrameName:groupName:]):
8010
8011            Add a WebFrameLoaderClient to the PageClients passed to Page().
8012
80132013-08-25  Darin Adler  <darin@apple.com>
8014
8015        Frame should not have a documentTypeString member function
8016        https://bugs.webkit.org/show_bug.cgi?id=120262
8017
8018        Reviewed by Andreas Kling.
8019
8020        * WebView/WebFrame.mm: Removed _stringWithDocumentTypeStringAndMarkupString:
8021        internal method, which was not used anywhere in WebKit. Internal methods are
8022        only for use within WebKit, as opposed to public and private methods that can
8023        be used outside.
8024        * WebView/WebFrameInternal.h: Ditto.
8025
80262013-08-24  Darin Adler  <darin@apple.com>
8027
8028        Frame::tree should return a reference instead of a pointer
8029        https://bugs.webkit.org/show_bug.cgi?id=120259
8030
8031        Reviewed by Andreas Kling.
8032
8033        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
8034        (WebKit::NetscapePluginInstanceProxy::performRequest):
8035        * Plugins/WebBaseNetscapePluginView.mm:
8036        (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]):
8037        * Plugins/WebNetscapePluginView.mm:
8038        (-[WebNetscapePluginView loadPluginRequest:]):
8039        * WebCoreSupport/WebFrameLoaderClient.mm:
8040        (applyAppleDictionaryApplicationQuirkNonInlinePart):
8041        (WebFrameLoaderClient::prepareForDataSourceReplacement):
8042        (WebFrameLoaderClient::createFrame):
8043        * WebView/WebFrame.mm:
8044        (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
8045        (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
8046        (-[WebFrame _unmarkAllBadGrammar]):
8047        (-[WebFrame _unmarkAllMisspellings]):
8048        (-[WebFrame _atMostOneFrameHasSelection]):
8049        (-[WebFrame _findFrameWithSelection]):
8050        (-[WebFrame _drawRect:contentsOnly:]):
8051        (-[WebFrame _isDescendantOfFrame:]):
8052        (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
8053        (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
8054        (-[WebFrame name]):
8055        (-[WebFrame findFrameNamed:]):
8056        (-[WebFrame parentFrame]):
8057        (-[WebFrame childFrames]):
8058        * WebView/WebView.mm:
8059        (-[WebView _attachScriptDebuggerToAllFrames]):
8060        (-[WebView _detachScriptDebuggerFromAllFrames]):
8061        (-[WebView _clearMainFrameName]):
8062        (-[WebView _isUsingAcceleratedCompositing]):
8063        (-[WebView _isSoftwareRenderable]):
8064        (-[WebView setHostWindow:]):
8065        (incrementFrame):
8066        Use tree(). instead of tree()->.
8067
80682013-08-23  Beth Dakin  <bdakin@apple.com>
8069
8070        REGRESSION (r132545): Some PDFs generated by WebKit are blank when viewed in 
8071        Adobe Reader
8072        https://bugs.webkit.org/show_bug.cgi?id=120240
8073        -and corresponding-
8074        <rdar://problem/14634453>
8075
8076        Reviewed by Anders Carlsson.
8077
8078        Hook up new WebSystemInterface API to find out if the current context is the PDF 
8079        context.
8080
8081        * WebCoreSupport/WebSystemInterface.mm:
8082        (InitWebCoreSystemInterface):
8083
80842013-08-20  Pratik Solanki  <psolanki@apple.com>
8085
8086        <https://webkit.org/b/120029> Document::markers() should return a reference
8087
8088        Reviewed by Andreas Kling.
8089
8090        Document::m_markers is never NULL so return a reference from Document::markers(). Also mark
8091        m_markers as const and initialize it in member initialization.
8092
8093        * WebView/WebFrame.mm:
8094        (-[WebFrame _unmarkAllBadGrammar]):
8095        (-[WebFrame _unmarkAllMisspellings]):
8096        * WebView/WebHTMLView.mm:
8097        (-[WebHTMLView unmarkAllTextMatches]):
8098        (-[WebHTMLView rectsForTextMatches]):
8099
81002013-08-19  Ryosuke Niwa  <rniwa@webkit.org>
8101
8102        <https://webkit.org/b/120049> Delete code for Snow Leopard
8103
8104        Reviewed by Benjamin Poulain.
8105
8106        * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
8107        (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
8108        (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
8109        * Misc/WebNSControlExtras.m:
8110        (-[NSControl sizeToFitAndAdjustWindowHeight]):
8111        * Misc/WebNSFileManagerExtras.mm:
8112        * WebCoreSupport/WebEditorClient.mm:
8113        (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
8114        (WebEditorClient::getGuessesForWord):
8115        * WebCoreSupport/WebFrameLoaderClient.mm:
8116        (WebFrameLoaderClient::dispatchDidLayout):
8117        (WebFrameLoaderClient::provisionalLoadStarted):
8118        * WebCoreSupport/WebSystemInterface.mm:
8119        (InitWebCoreSystemInterface):
8120        * WebKitPrefix.h:
8121        * WebView/WebDynamicScrollBarsView.mm:
8122        (-[WebDynamicScrollBarsView scrollWheel:]):
8123        * WebView/WebFullScreenController.mm:
8124        (convertRectToScreen):
8125        (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
8126        (-[WebFullScreenController exitFullScreen]):
8127        * WebView/WebHTMLView.mm:
8128        (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
8129        (-[WebHTMLView removeMouseMovedObserver]):
8130        (-[WebHTMLView windowDidBecomeKey:]):
8131        (-[WebHTMLView windowDidResignKey:]):
8132        * WebView/WebView.mm:
8133        (-[WebView _deviceScaleFactor]):
8134
81352013-08-19  Ryosuke Niwa  <rniwa@webkit.org>
8136
8137        <https://webkit.org/b/120051> Remove the Mail thread workaround
8138
8139        Reviewed by Sam Weinig.
8140
8141        Remove the workaround for a very old version of Mail added in r39455.
8142
8143        * WebView/WebArchive.mm:
8144        (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
8145        (-[WebArchive mainResource]):
8146        (-[WebArchive subresources]):
8147        (-[WebArchive subframeArchives]):
8148        * WebView/WebFrameView.mm:
8149        (-[WebFrameView initWithFrame:]):
8150        * WebView/WebResource.mm:
8151        (-[WebResource data]):
8152        (-[WebResource URL]):
8153        (-[WebResource MIMEType]):
8154        (-[WebResource textEncodingName]):
8155        (-[WebResource frameName]):
8156        (-[WebResource _ignoreWhenUnarchiving]):
8157        (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
8158        (-[WebResource _suggestedFilename]):
8159        (-[WebResource _response]):
8160        (-[WebResource _stringValue]):
8161
81622013-08-19  Pratik Solanki  <psolanki@apple.com>
8163
8164        <https://webkit.org/b/119918> Frame::selection() should return a reference
8165
8166        Reviewed by Darin Adler.
8167
8168        m_selection is never NULL so return a reference from Frame::selection(). Also removed some
8169        unnecessary null checks and assert diff ts exposed as a result.
8170
8171        * Plugins/WebPluginController.mm:
8172        * WebView/WebFrame.mm:
8173        (-[WebFrame _hasSelection]):
8174        (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
8175        (-[WebFrame _selectionGranularity]):
8176        (-[WebFrame _convertToNSRange:]):
8177        (-[WebFrame _convertToDOMRange:]):
8178        (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
8179        (-[WebFrame _typingStyle]):
8180        (-[WebFrame _selectedNSRange]):
8181        (-[WebFrame _selectNSRange:]):
8182        (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
8183        (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
8184        * WebView/WebHTMLRepresentation.mm:
8185        (-[WebHTMLRepresentation currentForm]):
8186        * WebView/WebHTMLView.mm:
8187        (-[WebHTMLView readSelectionFromPasteboard:]):
8188        (-[WebHTMLView _selectedRange]):
8189        (-[WebHTMLView _hasSelection]):
8190        (-[WebHTMLView _hasSelectionOrInsertionPoint]):
8191        (-[WebHTMLView _hasInsertionPoint]):
8192        (-[WebHTMLView _isEditable]):
8193        (-[WebHTMLView jumpToSelection:]):
8194        (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
8195        (-[WebHTMLView maintainsInactiveSelection]):
8196        (isTextInput):
8197        (isInPasswordField):
8198        (-[WebHTMLView centerSelectionInVisibleArea:]):
8199        (-[WebHTMLView _canSmartCopyOrDelete]):
8200        (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
8201        (-[WebHTMLView _updateSelectionForInputManager]):
8202        (-[WebHTMLView selectionRect]):
8203        (-[WebHTMLView selectionTextRects]):
8204        (-[WebHTMLView selectionImageRect]):
8205        (-[WebHTMLView selectAll]):
8206        (-[WebHTMLView deselectAll]):
8207        (-[WebHTMLView selectedAttributedString]):
8208        * WebView/WebTextCompletionController.mm:
8209        (-[WebTextCompletionController doCompletion]):
8210        * WebView/WebView.mm:
8211        (-[WebView setSelectedDOMRange:affinity:]):
8212        (-[WebView selectedDOMRange]):
8213        (-[WebView selectionAffinity]):
8214        (-[WebView setEditable:]):
8215        (-[WebView _selectionIsCaret]):
8216        (-[WebView _selectionIsAll]):
8217
82182013-08-17  Darin Adler  <darin@apple.com>
8219
8220        <https://webkit.org/b/119941> Make Page::dragController return a reference
8221
8222        Reviewed by Andreas Kling.
8223
8224        * WebView/WebFrameView.mm:
8225        (-[WebFrameView _setDocumentView:]):
8226        * WebView/WebHTMLView.mm:
8227        (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
8228        (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
8229        * WebView/WebView.mm:
8230        (-[WebView _setInitiatedDrag:]):
8231        (-[WebView draggingEntered:]):
8232        (-[WebView draggingUpdated:]):
8233        (-[WebView draggingExited:]):
8234        (-[WebView performDragOperation:]):
8235        (-[WebView moveDragCaretToPoint:]):
8236        (-[WebView removeDragCaret]):
8237        Updated call sites.
8238
82392013-08-16  Pratik Solanki  <psolanki@apple.com>
8240
8241        <https://webkit.org/b/119852> Frame::scriptController() should return a reference
8242
8243        Reviewed by Andreas Kling.
8244
8245        m_script is never NULL so we can just return a reference. Also remove some pointless null
8246        checks as a result of doing this.
8247
8248        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
8249        (WebKit::NetscapePluginInstanceProxy::cleanup):
8250        (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
8251        (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
8252        (WebKit::NetscapePluginInstanceProxy::evaluate):
8253        (WebKit::NetscapePluginInstanceProxy::invoke):
8254        (WebKit::NetscapePluginInstanceProxy::invokeDefault):
8255        (WebKit::NetscapePluginInstanceProxy::construct):
8256        (WebKit::NetscapePluginInstanceProxy::getProperty):
8257        (WebKit::NetscapePluginInstanceProxy::setProperty):
8258        (WebKit::NetscapePluginInstanceProxy::removeProperty):
8259        (WebKit::NetscapePluginInstanceProxy::hasProperty):
8260        (WebKit::NetscapePluginInstanceProxy::hasMethod):
8261        (WebKit::NetscapePluginInstanceProxy::enumerate):
8262        (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
8263        * Plugins/WebNetscapePluginView.mm:
8264        (-[WebNetscapePluginView getVariable:value:]):
8265        (-[WebNetscapePluginView _destroyPlugin]):
8266        * Plugins/WebPluginController.mm:
8267        * WebCoreSupport/WebFrameLoaderClient.mm:
8268        * WebCoreSupport/WebInspectorClient.mm:
8269        (WebInspectorFrontendClient::save):
8270        (WebInspectorFrontendClient::append):
8271        * WebView/WebFrame.mm:
8272        (-[WebFrame _attachScriptDebugger]):
8273        (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
8274        (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
8275        (-[WebFrame _globalContextForScriptWorld:]):
8276        (-[WebFrame jsWrapperForNode:inScriptWorld:]):
8277        (-[WebFrame windowObject]):
8278        (-[WebFrame globalContext]):
8279        (-[WebFrame javaScriptContext]):
8280        * WebView/WebScriptDebugger.mm:
8281        (WebScriptDebugger::initGlobalCallFrame):
8282        (WebScriptDebugger::callEvent):
8283        * WebView/WebView.mm:
8284        (-[WebView windowScriptObject]):
8285        (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
8286
82872013-08-15  Anders Carlsson  <andersca@apple.com>
8288
8289        <https://webkit.org/b/119859> Frame::loader() should return a reference
8290
8291        Reviewed by Andreas Kling.
8292
8293        * Plugins/Hosted/HostedNetscapePluginStream.mm:
8294        (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
8295        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
8296        (WebKit::NetscapePluginInstanceProxy::performRequest):
8297        (WebKit::NetscapePluginInstanceProxy::loadRequest):
8298        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
8299        (-[WebHostedNetscapePluginView pluginView:receivedResponse:]):
8300        * Plugins/WebBaseNetscapePluginView.mm:
8301        (-[WebBaseNetscapePluginView requestWithURLCString:]):
8302        * Plugins/WebNetscapePluginStream.mm:
8303        (WebNetscapePluginStream::WebNetscapePluginStream):
8304        * Plugins/WebNetscapePluginView.mm:
8305        (-[WebNetscapePluginView loadStream]):
8306        (-[WebNetscapePluginView pluginView:receivedResponse:]):
8307        (-[WebNetscapePluginView loadPluginRequest:]):
8308        (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
8309        * Plugins/WebPluginController.mm:
8310        * WebCoreSupport/WebFrameLoaderClient.mm:
8311        (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
8312        (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
8313        (WebFrameLoaderClient::dispatchWillSubmitForm):
8314        (WebFrameLoaderClient::updateGlobalHistory):
8315        (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
8316        (WebFrameLoaderClient::restoreViewState):
8317        (WebFrameLoaderClient::transitionToCommittedForNewPage):
8318        (WebFrameLoaderClient::createFrame):
8319        * WebCoreSupport/WebFrameNetworkingContext.mm:
8320        (WebFrameNetworkingContext::blockedError):
8321        * WebCoreSupport/WebPlatformStrategies.mm:
8322        (WebPlatformStrategies::getPluginInfo):
8323        * WebView/WebFrame.mm:
8324        (kit):
8325        (-[WebFrame _dataSource]):
8326        (-[WebFrame _canProvideDocumentSource]):
8327        (-[WebFrame _commitData:]):
8328        (-[WebFrame _firstLayoutDone]):
8329        (-[WebFrame _loadType]):
8330        (-[WebFrame _cacheabilityDictionary]):
8331        (-[WebFrame _clearOpener]):
8332        (-[WebFrame provisionalDataSource]):
8333        (-[WebFrame dataSource]):
8334        (-[WebFrame loadRequest:]):
8335        (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
8336        (-[WebFrame loadArchive:]):
8337        (-[WebFrame stopLoading]):
8338        (-[WebFrame reload]):
8339        (-[WebFrame reloadFromOrigin]):
8340        * WebView/WebHTMLRepresentation.mm:
8341        (-[WebHTMLRepresentation receivedData:withDataSource:]):
8342        * WebView/WebHTMLView.mm:
8343        (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
8344        * WebView/WebPDFView.mm:
8345        (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
8346        * WebView/WebRenderLayer.mm:
8347        (-[WebRenderLayer initWithWebFrame:]):
8348        * WebView/WebRenderNode.mm:
8349        (-[WebRenderNode _initWithCoreFrame:]):
8350        * WebView/WebView.mm:
8351        (-[WebView _close]):
8352        (-[WebView _loadBackForwardListFromOtherView:]):
8353        (-[WebView _cachedResponseForURL:]):
8354        (-[WebView setCustomTextEncodingName:]):
8355        (-[WebView shouldClose]):
8356
83572013-08-15  Anders Carlsson  <andersca@apple.com>
8358
8359        <https://webkit.org/b/119854> REGRESSION (r153379): Serious drawing issues with WebViews
8360        <rdar://problem/14698870>
8361
8362        Reviewed by Simon Fraser.
8363
8364        Don't set aside subviews if they have already been set aside.
8365
8366        * WebView/WebHTMLView.mm:
8367        (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
8368
83692013-08-15  Eric Carlson  <eric.carlson@apple.com>
8370
8371        [Mac] Remove "legacy" media UI
8372        https://bugs.webkit.org/show_bug.cgi?id=119752
8373
8374        Reviewed by Jer Noble.
8375
8376        * WebCoreSupport/WebSystemInterface.mm:
8377        (InitWebCoreSystemInterface): Remove MediaControllerThemeAvailable.
8378
83792013-08-14  Tim Horton  <timothy_horton@apple.com>
8380
8381        Remotely hosted plugins don’t work in window-server-hosted WebKit1 views
8382        https://bugs.webkit.org/show_bug.cgi?id=119709
8383        <rdar://problem/14717572>
8384
8385        Reviewed by Anders Carlsson.
8386
8387        * Plugins/Hosted/NetscapePluginHostManager.h:
8388        Add hostLayersInWindowServer argument to instantiatePlugin.
8389
8390        * Plugins/Hosted/NetscapePluginHostManager.mm:
8391        (WebKit::NetscapePluginHostManager::instantiatePlugin):
8392        Add hostLayersInWindowServer argument to instantiatePlugin, and pass it through to WebKitPluginHost.
8393
8394        * Plugins/Hosted/NetscapePluginHostProxy.mm:
8395        (WKPCLayerHostingModeChanged):
8396        Forward the notification that the plugin host changed its layer hosting mode
8397        to the instance proxy.
8398
8399        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
8400        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
8401        (WebKit::NetscapePluginInstanceProxy::setShouldHostLayersInWindowServer):
8402        Ask the plugin host to re-host its layers when the layer hosting mode changes.
8403
8404        (WebKit::NetscapePluginInstanceProxy::layerHostingModeChanged):
8405        Inform the WebHostedNetscapePluginView of the new layer hosting mode
8406        when it changes. Also, store the new CAContext ID.
8407
8408        * Plugins/Hosted/WebHostedNetscapePluginView.h:
8409        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
8410        (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
8411        Determine whether the WebView's current window uses window-server hosting for its layers.
8412
8413        (-[WebHostedNetscapePluginView createPlugin]):
8414        Drive-by spelling fix.
8415        Factor _pluginLayer initialization out into createPluginLayer.
8416        Instantiate the plugin with the appropriate layer hosting mode.
8417
8418        (-[WebHostedNetscapePluginView createPluginLayer]):
8419
8420        (-[WebHostedNetscapePluginView setHostsLayersInWindowServer:]):
8421        Create a new _pluginLayer if the layer hosting mode changes.
8422        Attach the new _pluginLayer to our parent layer.
8423
8424        (-[WebHostedNetscapePluginView updateAndSetWindow]):
8425        Inform the NetscapePluginInstanceProxy if the layer hosting mode changes,
8426        so it can inform the plugin host. We will asynchronously receive a reply
8427        with the new hosting mode and renderContextID and switch to the new CAContext,
8428        in setHostsLayersInWindowServer:.
8429
8430        * Plugins/Hosted/WebKitPluginClient.defs:
8431        * Plugins/Hosted/WebKitPluginHost.defs:
8432
84332013-08-14  Tim Horton  <timothy_horton@apple.com>
8434
8435        REGRESSION (r153877): Plugin scanning slows creation of WebViews
8436        https://bugs.webkit.org/show_bug.cgi?id=119665
8437        <rdar://problem/14716549>
8438
8439        Reviewed by Darin Adler.
8440
8441        * Plugins/WebPluginDatabase.h:
8442        * Plugins/WebPluginDatabase.mm:
8443        (+[WebPluginDatabase sharedDatabaseIfExists]): Added.
8444
8445        * WebCoreSupport/WebPlatformStrategies.mm:
8446        (WebPlatformStrategies::refreshPlugins):
8447        Only refresh the plugin database if it's already been loaded.
8448
84492013-08-14  Jer Noble  <jer.noble@apple.com>
8450
8451        Revert r154019; causes >50 tests to fail on WebKit1 bots.
8452
8453        * Plugins/Hosted/NetscapePluginHostManager.h:
8454        * Plugins/Hosted/NetscapePluginHostManager.mm:
8455        (WebKit::NetscapePluginHostManager::instantiatePlugin):
8456        * Plugins/Hosted/NetscapePluginHostProxy.mm:
8457        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
8458        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
8459        * Plugins/Hosted/WebHostedNetscapePluginView.h:
8460        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
8461        (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]):
8462        (-[WebHostedNetscapePluginView createPlugin]):
8463        (-[WebHostedNetscapePluginView updateAndSetWindow]):
8464        * Plugins/Hosted/WebKitPluginClient.defs:
8465        * Plugins/Hosted/WebKitPluginHost.defs:
8466
84672013-08-13  Filip Pizlo  <fpizlo@apple.com>
8468
8469        Foo::s_info should be Foo::info(), so that you can change how the s_info is actually linked
8470        https://bugs.webkit.org/show_bug.cgi?id=119770
8471
8472        Reviewed by Mark Hahnenberg.
8473
8474        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
8475        (WebKit::getObjectID):
8476        (WebKit::NetscapePluginInstanceProxy::retainLocalObject):
8477        (WebKit::NetscapePluginInstanceProxy::releaseLocalObject):
8478        * Plugins/Hosted/ProxyInstance.mm:
8479        (WebKit::ProxyRuntimeMethod::finishCreation):
8480        (WebKit::ProxyInstance::invokeMethod):
8481        * Plugins/Hosted/ProxyRuntimeObject.h:
8482        (WebKit::ProxyRuntimeObject::createStructure):
8483        * WebView/WebView.mm:
8484        (aeDescFromJSValue):
8485
84862013-08-13  Anders Carlsson  <andersca@apple.com>
8487
8488        <https://webkit.org/b/119777> Get rid of two gotos
8489
8490        Reviewed by Tim Horton.
8491
8492        * WebView/WebHTMLView.mm:
8493        (-[WebHTMLView mouseDown:]):
8494        (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
8495
84962013-08-13  Tim Horton  <timothy_horton@apple.com>
8497
8498        Remotely hosted plugins don’t work in window-server-hosted WebKit1 views
8499        https://bugs.webkit.org/show_bug.cgi?id=119709
8500        <rdar://problem/14717572>
8501
8502        Reviewed by Anders Carlsson.
8503
8504        * Plugins/Hosted/NetscapePluginHostManager.h:
8505        Add hostLayersInWindowServer argument to instantiatePlugin.
8506
8507        * Plugins/Hosted/NetscapePluginHostManager.mm:
8508        (WebKit::NetscapePluginHostManager::instantiatePlugin):
8509        Add hostLayersInWindowServer argument to instantiatePlugin, and pass it through to WebKitPluginHost.
8510
8511        * Plugins/Hosted/NetscapePluginHostProxy.mm:
8512        (WKPCLayerHostingModeChanged):
8513        Forward the notification that the plugin host changed its layer hosting mode
8514        to the instance proxy.
8515
8516        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
8517        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
8518        (WebKit::NetscapePluginInstanceProxy::setShouldHostLayersInWindowServer):
8519        Ask the plugin host to re-host its layers when the layer hosting mode changes.
8520
8521        (WebKit::NetscapePluginInstanceProxy::layerHostingModeChanged):
8522        Inform the WebHostedNetscapePluginView of the new layer hosting mode
8523        when it changes. Also, store the new CAContext ID.
8524
8525        * Plugins/Hosted/WebHostedNetscapePluginView.h:
8526        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
8527        (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
8528        Determine whether the WebView's current window uses window-server hosting for its layers.
8529
8530        (-[WebHostedNetscapePluginView createPlugin]):
8531        Drive-by spelling fix.
8532        Factor _pluginLayer initialization out into createPluginLayer.
8533        Instantiate the plugin with the appropriate layer hosting mode.
8534
8535        (-[WebHostedNetscapePluginView createPluginLayer]):
8536
8537        (-[WebHostedNetscapePluginView setHostsLayersInWindowServer:]):
8538        Create a new _pluginLayer if the layer hosting mode changes.
8539        Attach the new _pluginLayer to our parent layer.
8540
8541        (-[WebHostedNetscapePluginView updateAndSetWindow]):
8542        Inform the NetscapePluginInstanceProxy if the layer hosting mode changes,
8543        so it can inform the plugin host. We will asynchronously receive a reply
8544        with the new hosting mode and renderContextID and switch to the new CAContext,
8545        in setHostsLayersInWindowServer:.
8546
8547        * Plugins/Hosted/WebKitPluginClient.defs:
8548        * Plugins/Hosted/WebKitPluginHost.defs:
8549
85502013-08-08  Tim Horton  <timothy_horton@apple.com>
8551
8552        navigator.plugins has plugins in it when plugins are disabled
8553        https://bugs.webkit.org/show_bug.cgi?id=119607
8554        <rdar://problem/14678030>
8555
8556        Reviewed by Anders Carlsson.
8557
8558        * WebCoreSupport/WebPlatformStrategies.mm:
8559        (WebPlatformStrategies::getPluginInfo):
8560        If plugins are disabled for the given page, give WebCore an empty list of
8561        plugins. If WebKit1 had any application plugins, we'd return just them
8562        instead.
8563
85642013-08-06  Stephanie Lewis  <slewis@apple.com>
8565
8566        Update Order Files for Safari
8567        <rdar://problem/14517392>
8568
8569        Unreviewed.
8570
8571        * WebKit.order:
8572
85732013-08-04  Sam Weinig  <sam@webkit.org>
8574
8575        Remove support for HTML5 MicroData
8576        https://bugs.webkit.org/show_bug.cgi?id=119480
8577
8578        Reviewed by Anders Carlsson.
8579
8580        * Configurations/FeatureDefines.xcconfig:
8581
85822013-07-23  David Farler  <dfarler@apple.com>
8583
8584        Provide optional OTHER_CFLAGS, OTHER_CPPFLAGS, OTHER_LDFLAGS additions for building with ASAN
8585        https://bugs.webkit.org/show_bug.cgi?id=117762
8586
8587        Reviewed by Mark Rowe.
8588
8589        * Configurations/DebugRelease.xcconfig:
8590        Add ASAN_OTHER_CFLAGS, CPLUSPLUSFLAGS, LDFLAGS.
8591        * Configurations/WebKit.xcconfig:
8592        Add ASAN_OTHER_LDFLAGS.
8593
85942013-07-26  Mark Rowe  <mrowe@apple.com>
8595
8596        Logging should be configurable using human-readable channel names rather than crazy bitmasks
8597        <http://webkit.org/b/119031>
8598
8599        Implement shared logic for initializing logging channels based on human-readable channel names in WTF,
8600        and rework the WebCore, WebKit and WebKit2 logging initialization on top of it.
8601
8602        Logging channels may now be enabled by providing a comma-separated list of channel names, with the special
8603        "all" name enabling all channels. Channel names prefixed with a leading "-" will result in the named channel
8604        being disabled. For instance, specifying "all,-history,-loading" will result in all logging channels except
8605        for history and loading being enabled.
8606
8607        For OS X developers, this also changes the name of the user defaults used to enable logging. This is done to allow
8608        the old user defaults to remain set for those people that need to switch between version of WebKit before and
8609        after this change. Where the old user default keys were WebCoreLogLevel, WebKitLogLevel and WebKit2LogLevel,
8610        the new user default keys are WebCoreLogging, WebKitLogging and WebKit2Logging.
8611
8612        For GTK developers, this changes the separator used in the WEBKIT_DEBUG environment variable to a comma for
8613        consistency with the other platforms and to enable more code sharing.
8614
8615        While doing this work I've also taken the opportunity to eliminate the need to touch multiple files when
8616        adding a new logging channel. Now only the header in the relevant project needs to be updated.
8617
8618        Reviewed by Sam Weinig.
8619
8620        * Misc/WebKitLogging.h: Declare a WEBKIT_LOG_CHANNELS macro that can be used to apply a preprocessor macro
8621        across the set of all logging channels. Use this macro to declare the logging channels.
8622        * Misc/WebKitLogging.m: Use WEBKIT_LOG_CHANNELS to define all of the channels. Pass the channels and the
8623        preference value to the new WTF function that handles the initialization.
8624        * WebView/WebPreferenceKeysPrivate.h: Remove a key that does not need to be here.
8625        * WebView/WebView.mm: Switch from WebCore's InitializeLogging.h to Logging.h.
8626
86272013-08-01  Ruth Fong  <ruth_fong@apple.com>
8628
8629        [Forms: color] <input type='color'> popover color well implementation
8630        <rdar://problem/14411008> and https://bugs.webkit.org/show_bug.cgi?id=119356
8631
8632        Reviewed by Benjamin Poulain.
8633
8634        * Configurations/FeatureDefines.xcconfig: Added and enabled INPUT_TYPE_COLOR_POPOVER.
8635
86362013-07-31  Tim Horton  <timothy_horton@apple.com>
8637
8638        Remove didFinishLoad order quirk
8639        https://bugs.webkit.org/show_bug.cgi?id=119354
8640        <rdar://problem/11510686>
8641
8642        Reviewed by Alexey Proskuryakov.
8643
8644        * Misc/WebKitVersionChecks.h:
8645        * WebView/WebView.mm:
8646        (-[WebView _preferencesChanged:]):
8647        Don't set the now-removed preference.
8648
86492013-07-31  Kwang Yul Seo  <skyul@company100.net>
8650
8651        Use emptyString instead of String("")
8652        https://bugs.webkit.org/show_bug.cgi?id=119335
8653
8654        Reviewed by Darin Adler.
8655
8656        Use emptyString() instead of String("") because it is better style and
8657        faster. This is a followup to r116908, removing all occurrences of
8658        String("") from WebKit.
8659
8660        * WebCoreSupport/WebFrameLoaderClient.mm:
8661        (WebFrameLoaderClient::userAgent):
8662
86632013-07-31  Ruth Fong  <ruth_fong@apple.com>
8664
8665        <input type=color> Mac UI behaviour
8666        <rdar://problem/10269922> and https://bugs.webkit.org/show_bug.cgi?id=61276
8667
8668        Reviewed by Brady Eidson.
8669
8670        * Configurations/FeatureDefines.xcconfig: Enabled INPUT_TYPE_COLOR.
8671        * WebCoreSupport/WebChromeClient.h:
8672        * WebCoreSupport/WebChromeClient.mm:
8673        (WebChromeClient::createColorPicker): Added stub implementation.
8674
86752013-07-26  Dean Jackson  <dino@apple.com>
8676
8677        Allow new transitions to run even when controller is suspended
8678        https://bugs.webkit.org/show_bug.cgi?id=119171
8679        <rdar://problem/14511404>
8680
8681        Reviewed by Simon Fraser.
8682
8683        Expose a new SPI on WebView that triggers the (buggy) old behaviour
8684        for animations, such that any newly created animations will start even
8685        when the document is supposedly suspended. It turns out that client content was
8686        unknowingly relying on this behaviour - e.g. suspending a view, loading a
8687        bunch of new content, bringing the view on screen and then unsuspending. In this
8688        situation, we were not running CSS transitions, because the page was suspended.
8689        However, JS was still triggering them, and content was expecting a transitionEnd event.
8690
8691        * WebView/WebView.mm:
8692        (-[WebView allowsNewCSSAnimationsWhileSuspended]): Calls into AnimationController.
8693        (-[WebView setAllowsNewCSSAnimationsWhileSuspended:]): Ditto.
8694        * WebView/WebViewPrivate.h: New methods listed above.
8695
86962013-07-26  Anders Carlsson  <andersca@apple.com>
8697
8698        Add another method that we need to set aside subviews for
8699        https://bugs.webkit.org/show_bug.cgi?id=119157
8700        <rdar://problem/14554723>
8701
8702        Reviewed by Beth Dakin.
8703
8704        * WebView/WebHTMLView.mm:
8705        (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
8706        (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
8707
87082013-07-25  Andreas Kling  <akling@apple.com>
8709
8710        ChromeClient::focusedNodeChanged() should be focusedElementChanged().
8711        <http://webkit.org/b/119110>
8712
8713        Reviewed by Anders Carlsson.
8714
8715        * WebCoreSupport/WebChromeClient.h:
8716        * WebCoreSupport/WebChromeClient.mm:
8717        (WebChromeClient::focusedElementChanged):
8718
87192013-05-05  Geoffrey Garen  <ggaren@apple.com>
8720
8721        Rolled back in r149527 with crash fixed.
8722
8723        Reviewed by Oliver Hunt.
8724
8725            Rationalized 'this' value conversion
8726            https://bugs.webkit.org/show_bug.cgi?id=115542
8727
87282013-07-17  Commit Queue  <commit-queue@webkit.org>
8729
8730        Unreviewed, rolling out r152701, r152703, r152739, r152754,
8731        and r152756.
8732        http://trac.webkit.org/changeset/152701
8733        http://trac.webkit.org/changeset/152703
8734        http://trac.webkit.org/changeset/152739
8735        http://trac.webkit.org/changeset/152754
8736        http://trac.webkit.org/changeset/152756
8737        https://bugs.webkit.org/show_bug.cgi?id=118821
8738
8739        this was a buggy fix and we're going to try something
8740        different (Requested by thorton on #webkit).
8741
8742        * WebCoreSupport/WebChromeClient.h:
8743        * WebCoreSupport/WebChromeClient.mm:
8744        (WebChromeClient::shouldUnavailablePluginMessageBeButton):
8745
87462013-07-17  Kangil Han  <kangil.han@samsung.com>
8747
8748        Use toHTMLMediaElement
8749        https://bugs.webkit.org/show_bug.cgi?id=118727
8750
8751        Reviewed by Ryosuke Niwa.
8752
8753        To avoid direct use of static_cast, this patch uses toHTMLMediaElement for code cleanup.
8754
8755        * WebView/WebView.mm:
8756        (-[WebView _enterFullscreenForNode:WebCore::]):
8757
87582013-07-16  Simon Fraser  <simon.fraser@apple.com>
8759
8760        Protect against the LayerFlushController being deleted inside its flushLayers() callback
8761        https://bugs.webkit.org/show_bug.cgi?id=118741
8762        <rdar://problem/14402651>
8763
8764        Reviewed by Tim Horton.
8765        
8766        It's possible (especially on iOS) for the LayerFlushController to be destroyed
8767        inside its callback, via -[WebView _close]. Protect against this by making
8768        it refcounted, and holding a ref across the callback.
8769        
8770        Due to the odd relationship in which LayerFlushController owns its LayerFlushScheduler
8771        by value, we achieve this by allowing subclasses of LayerFlushScheduler
8772        to override runLoopObserverCallback(). WebViewLayerFlushScheduler uses the
8773        override to protect the owner of the LayerFlushScheduler, which is the
8774        LayerFlushController, when the callback is firing.
8775
8776        * WebView/WebView.mm:
8777        (-[WebView _close]):
8778        * WebView/WebViewData.h:
8779        (WebViewLayerFlushScheduler::~WebViewLayerFlushScheduler):
8780        (LayerFlushController::create):
8781        * WebView/WebViewData.mm:
8782        (LayerFlushController::invalidate):
8783        (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler):
8784
87852013-07-16  Jessie Berlin  <jberlin@apple.com>
8786
8787        Fix some NSDictionary misuse pointed out by the clang static analyzer
8788        https://bugs.webkit.org/show_bug.cgi?id=118736
8789
8790        Reviewed by Anders Carlsson.
8791
8792        * Plugins/Hosted/NetscapePluginHostManager.mm:
8793        (WebKit::NetscapePluginHostManager::spawnPluginHost):
8794        Explicitly cast the CFStringRef to an NSString *.
8795        * WebCoreSupport/WebEditorClient.mm:
8796        (WebEditorClient::documentFragmentFromAttributedString):
8797        Do not put a key with a nil value pair into the NSDictionary.
8798
87992013-07-15  Tim Horton  <timothy_horton@apple.com>
8800
8801        Update blocked/missing plug-in UI
8802        https://bugs.webkit.org/show_bug.cgi?id=118347
8803        <rdar://problem/14209318>
8804
8805        Reviewed by Sam Weinig.
8806        Patch by Antoine Quint, Anders Carlsson, Sam Weinig, and myself.
8807
8808        * WebCoreSupport/WebChromeClient.h:
8809        * WebCoreSupport/WebChromeClient.mm:
8810        (WebChromeClient::shouldUnavailablePluginMessageIncludeButton):
8811        Rename from shouldUnavailablePluginMessageBeButton to
8812        shouldUnavailablePluginMessageIncludeButton for accuracy.
8813
88142013-07-14  Jon Lee  <jonlee@apple.com>
8815
8816        [WK2] Calling Notification.requestPermission() without a callback crashes
8817        https://bugs.webkit.org/show_bug.cgi?id=118654
8818        <rdar://problem/14293352>
8819
8820        Reviewed by Alexey Proskuryakov.
8821
8822        * WebCoreSupport/WebNotificationClient.mm:
8823        (-[WebNotificationPolicyListener initWithCallback:]): The callback can be NULL, so remove the ASSERT.
8824        (-[WebNotificationPolicyListener allow]): Check for the callback before asking it to handle the event.
8825        (-[WebNotificationPolicyListener deny]): Ditto.
8826
88272013-07-12  Jessie Berlin  <jberlin@apple.com>
8828
8829        Remove some dead stores pointed out by the clang static analyzer.
8830        https://bugs.webkit.org/show_bug.cgi?id=118608
8831
8832        Reviewed by Anders Carlsson.
8833
8834        * Plugins/Hosted/NetscapePluginHostManager.mm:
8835        (WebKit::NetscapePluginHostManager::instantiatePlugin):
8836        kr is never read after this point, so there is no reason to assign to it.
8837
8838        * Plugins/WebBasePluginPackage.mm:
8839        (-[WebBasePluginPackage getPluginInfoFromPLists]):
8840        The extensions array is only used in the while loop. Move the declaration to the first place
8841        it is used in the while loop. Since it is always reassigned at that location, and since it
8842        is never read after the subsequent for loop, the assignment to an array containing the empty
8843        string is never used. Remove it.
8844        Similarly, the value of the description is always overwritten before used to assign to
8845        mimeClassInfo.desc or to pluginInfo.desc, so the code to assign it to the empty string is
8846        never used. Remove it.
8847
8848        * WebView/WebTextCompletionController.mm:
8849        (-[WebTextCompletionController _placePopupWindow:]):
8850        maxWidth is never read (and never was since it was added in r7311) after it is used on the
8851        line above to set windowFrame.size.width.
8852
88532013-07-11  Dan Bernstein  <mitz@apple.com>
8854
8855        [mac] No API for getting the page visibility state of a WebView
8856        https://bugs.webkit.org/show_bug.cgi?id=118578
8857
8858        Reviewed by Simon Fraser.
8859
8860        * WebView/WebView.mm:
8861        (kit): Added. Converts from WebCore::PageVisibilityState to WebPageVisibilityState.
8862        (-[WebView _visibilityState]): Added.
8863        * WebView/WebViewPrivate.h: Declared -_visibilityState.
8864
88652013-07-11  Timothy Hatcher  <timothy@apple.com>
8866
8867        Revert r152267 and soft link WebInspectorUI.framework again.
8868
8869        https://bugs.webkit.org/show_bug.cgi?id=118544
8870
8871        Reviewed by David Kilzer.
8872
8873        * Configurations/WebKit.xcconfig:
8874        * WebCoreSupport/WebInspectorClient.mm:
8875        (useWebKitWebInspector):
8876
88772013-07-10  Jessie Berlin  <jberlin@apple.com>
8878
8879        Remove some dead code from WebNSURLExtras _web_hostString
8880        https://bugs.webkit.org/show_bug.cgi?id=118519
8881
8882        Reviewed by Anders Carlsson.
8883
8884        * Misc/WebNSURLExtras.mm:
8885        (-[NSURL _web_hostString]):
8886        NSString initWithData:encoding: does not throw an exception when passing nil for the data, so
8887        just delete the code that wasn't being run.
8888
88892013-07-09  Jeremy Noble  <jer.noble@apple.com>
8890
8891        Reviewed by Simon Fraser.
8892
8893        Remember the scroll position and restore after exiting full-screen mode.
8894        https://bugs.webkit.org/show_bug.cgi?id=61956
8895        <rdar://problem/9544461>
8896
8897        Call into the main FrameView to save the scroll position before swapping the
8898        WebView into the full-screen window, and restore the scroll position after 
8899        swapping the WebView back into the browser window.
8900
8901        * WebView/WebFullScreenController.h:
8902        * WebView/WebFullScreenController.mm:
8903        (-[WebFullScreenController windowDidEnterFullscreen:]): Save the scroll position.
8904        (-[WebFullScreenController exitFullscreen]): Restore the scroll position.
8905
89062013-07-04  Yongjun Zhang  <yongjun_zhang@apple.com>
8907
8908        Add a method to get unreachable URL from WebFrame.
8909        https://bugs.webkit.org/show_bug.cgi?id=118399
8910
8911        Normally we could use [[WebFrame dataSource] unreachableURL] to get the failed URL.  However, if the frame has not
8912        loaded (FrameLoader::frameHasLoaded() is false), we will get a nil dataSource and we won't be able to get unreachableURL.
8913        We can add a method to always return the unreachableURL regardless if the frame has loaded or not.
8914
8915        Reviewed by Dan Bernstein.
8916
8917        * WebView/WebFrame.mm:
8918        (-[WebFrame _unreachableURL]):
8919        * WebView/WebFramePrivate.h:
8920
89212013-07-03  Zalan Bujtas  <zalan@apple.com>
8922
8923        H&R Block 2010 Help window can not be reopened.
8924        https://bugs.webkit.org/show_bug.cgi?id=118342
8925
8926        Reviewed by Antti Koivisto.
8927
8928        http://trac.webkit.org/changeset/118916 changed the window.focus() behaviour so that
8929        only the opener can (re)focus() a particular window.
8930        H&R Block app relies on the relaxed window.focus() rules.
8931
8932        * WebView/WebView.mm:
8933        (shouldRestrictWindowFocus):
8934        (-[WebView _preferencesChanged:]):
8935
89362013-07-01  Timothy Hatcher  <timothy@apple.com>
8937
8938        Link to WebInspectorUI.framework at build time instead of soft linking.
8939
8940        https://bugs.webkit.org/show_bug.cgi?id=118261
8941
8942        Reviewed by Joseph Pecoraro.
8943
8944        * Configurations/WebKit.xcconfig:
8945        * WebCoreSupport/WebInspectorClient.mm:
8946        (useWebKitWebInspector):
8947
89482013-07-01  Jochen Eisinger  <jochen@chromium.org>
8949
8950        Remove support for consumable user gestures
8951        https://bugs.webkit.org/show_bug.cgi?id=118247
8952
8953        Reviewed by Geoffrey Garen.
8954
8955        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
8956        (WebKit::NetscapePluginInstanceProxy::evaluate):
8957        * Plugins/WebNetscapePluginView.mm:
8958        (-[WebNetscapePluginView sendEvent:isDrawRect:]):
8959
89602013-06-27  Jer Noble  <jer.noble@apple.com>
8961
8962        Audio in apps which embed WebViews is corrupted.
8963        https://bugs.webkit.org/show_bug.cgi?id=118163
8964
8965        Reviewed by Maciej Stachowiak.
8966
8967        Expose the WebCore lowPowerVideoAudioBufferSizeEnabled setting to WebKit clients.
8968
8969        * WebView/WebPreferenceKeysPrivate.h:
8970        * WebView/WebPreferences.mm:
8971        (+[WebPreferences initialize]):
8972        (-[WebPreferences lowPowerVideoAudioBufferSizeEnabled]):
8973        (-[WebPreferences setLowPowerVideoAudioBufferSizeEnabled:]):
8974        * WebView/WebPreferencesPrivate.h:
8975        * WebView/WebView.mm:
8976        (-[WebView _preferencesChanged:]):
8977
89782013-07-01  Kangil Han  <kangil.han@samsung.com>
8979
8980        Adopt toHTMLTextAreaElement for code cleanup
8981        https://bugs.webkit.org/show_bug.cgi?id=118226
8982
8983        Reviewed by Andreas Kling.
8984
8985        To enhance readability, this patch adopts toHTMLTextAreaElement.
8986        This also helps out to reduce duplicated use of static_cast.
8987
8988        * WebCoreSupport/WebEditorClient.mm:
8989        (WebEditorClient::textDidChangeInTextArea):
8990
89912013-06-27  Kangil Han  <kangil.han@samsung.com>
8992
8993        Adopt is/toHTMLInputElement for code cleanup
8994        https://bugs.webkit.org/show_bug.cgi?id=118130
8995
8996        Reviewed by Antti Koivisto.
8997
8998        To enhance readability, this patch adopts is/toHTMLInputElement.
8999        This also helps out to reduce duplicated use of static_cast.
9000
9001        * DOM/WebDOMOperations.mm:
9002        (-[DOMHTMLInputElement _setAutofilled:]):
9003        * WebCoreSupport/WebChromeClient.mm:
9004        (WebChromeClient::focusedNodeChanged):
9005        * WebCoreSupport/WebEditorClient.mm:
9006        (WebEditorClient::textFieldDidBeginEditing):
9007        (WebEditorClient::textFieldDidEndEditing):
9008        (WebEditorClient::textDidChangeInTextField):
9009        (WebEditorClient::doTextFieldCommandFromEvent):
9010        (WebEditorClient::textWillBeDeletedInTextField):
9011        * WebView/WebHTMLRepresentation.mm:
9012        (inputElementFromDOMElement):
9013
90142013-06-26  Kangil Han  <kangil.han@samsung.com>
9015
9016        Adopt is/toHTMLAudioElement for code cleanup
9017        https://bugs.webkit.org/show_bug.cgi?id=117985
9018
9019        Reviewed by Jer Noble.
9020
9021        To enhance readibility, this patch adopts is/toHTMLAudioElement.
9022        This also helps out to reduce duplicated use of static_cast.
9023
9024        * Plugins/WebPluginController.mm:
9025
90262013-06-24  Simon Fraser  <simon.fraser@apple.com>
9027
9028        Move displayID stuff from Widget to Chrome
9029        https://bugs.webkit.org/show_bug.cgi?id=117944
9030
9031        Reviewed by Anders Carlsson.
9032
9033        In r151877 I polluted Widget with displayID-related stuff. This would
9034        be better on HostWindow, so move it there. This is a net code reduction,
9035        and eliminates PlatformScreenMac.h, and the NSScreen category.
9036
9037        * WebView/WebView.mm:
9038        (-[WebView doWindowDidChangeScreen]): Go via chrome().
9039
90402013-06-21  Christophe Dumez  <ch.dumez@sisa.samsung.com>
9041
9042        REGRESSION (r150663): Using webkitAudioContext in Inspector makes it undefined everywhere
9043        https://bugs.webkit.org/show_bug.cgi?id=117825
9044
9045        Reviewed by Kentaro Hara.
9046
9047        Use Settings to enable Web Audio instead of RuntimeEnabledFeatures.
9048
9049        * WebView/WebView.mm:
9050        (-[WebView _preferencesChanged:]):
9051
90522013-06-20  Simon Fraser  <simon.fraser@apple.com>
9053
9054        FrameView needs to initialize paintsEntireContents on creation
9055        https://bugs.webkit.org/show_bug.cgi?id=117844
9056
9057        Reviewed by Anders Carlsson.
9058        
9059        In WebKit1, if the WebView is layer-backed, WebHTMLView gets a layer.
9060        In this mode, FrameView::paintsEntireContents() is true. However,
9061        we would only call setPaintsEntireContents(true) on the FrameView
9062        when the view's layer-backed status changes. FrameView also needs
9063        to fetch this state when it is initialized, because we may be creating
9064        a new FrameView for an already layer-backed WebHTMLView.
9065
9066        * WebCoreSupport/WebChromeClient.h:
9067        * WebCoreSupport/WebChromeClient.mm:
9068        (WebChromeClient::shouldPaintEntireContents):
9069
90702013-06-19  Benjamin Poulain  <bpoulain@apple.com>
9071
9072        Use the PlatformEvent timestamp when creating a DOM Event
9073        https://bugs.webkit.org/show_bug.cgi?id=117179
9074
9075        Reviewed by Darin Adler.
9076
9077        * WebView/WebPDFView.mm:
9078        (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
9079
90802013-06-18  Roger Fong  <roger_fong@apple.com>
9081
9082        Unreviewed. Build fix for Mac.
9083
9084        * WebCoreSupport/WebFrameNetworkingContext.h:
9085        (WebFrameNetworkingContext::create):
9086        (WebFrameNetworkingContext::WebFrameNetworkingContext):
9087
90882013-06-18  Roger Fong  <roger_fong@apple.com>
9089
9090        Re-implement WebFrameNetworkingContext.
9091        <rdar://problem/13174821>.
9092
9093        Reviewed by Alexey Proskuryakov.
9094
9095        * WebCoreSupport/WebFrameNetworkingContext.h: Added.
9096        (WebFrameNetworkingContext::create):
9097        (WebFrameNetworkingContext::WebFrameNetworkingContext):
9098        (WebFrameNetworkingContext::userAgent):
9099        * WebCoreSupport/WebFrameNetworkingContext.mm: Added.
9100        (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
9101        (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
9102        (WebFrameNetworkingContext::needsSiteSpecificQuirks):
9103        (WebFrameNetworkingContext::localFileContentSniffingEnabled):
9104        (WebFrameNetworkingContext::scheduledRunLoopPairs):
9105        (WebFrameNetworkingContext::sourceApplicationAuditData):
9106        (WebFrameNetworkingContext::blockedError):
9107        (WebFrameNetworkingContext::storageSession):
9108
91092013-06-18  Alexey Proskuryakov  <ap@apple.com>
9110
9111        <rdar://problem/13174821> Remove files with an incorrect license.
9112
9113        Rubber-stamped by Maciej Stachowiak.
9114
9115        This will break the build, stay tuned for a fix coming soon.
9116
9117        * WebCoreSupport/WebFrameNetworkingContext.h: Removed.
9118        * WebCoreSupport/WebFrameNetworkingContext.mm: Removed.
9119
91202013-06-17  Michael Brüning  <michael.bruning@digia.com>
9121
9122        [Qt] Remove Qt specific QTKIT flagged code.
9123        https://bugs.webkit.org/show_bug.cgi?id=117635
9124
9125        Reviewed by Simon Hausmann.
9126
9127        Due to disabling QTKIT for Qt in r151546, the
9128        code the flags that are not taken into account
9129        anymore and the code that has been rendered
9130        unreachable by this are removed.
9131
9132        * WebView/WebView.mm:
9133        (-[WebView _preferencesChanged:]):
9134
91352013-06-17  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
9136
9137        Unreviewed, rolling out r151632.
9138        http://trac.webkit.org/changeset/151632
9139        https://bugs.webkit.org/show_bug.cgi?id=117585
9140
9141        Debug build error ASSERT(WTF_USE_GRAMMAR_CHECKING) for non MAC
9142        platforms
9143
9144        * WebCoreSupport/WebContextMenuClient.mm:
9145        (fixMenusReceivedFromOldClients):
9146
91472013-06-14  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
9148
9149        Context menu grammar checking items are available when GRAMMAR_CHECKING macro is off
9150        https://bugs.webkit.org/show_bug.cgi?id=117585
9151
9152        Reviewed by Anders Carlsson.
9153
9154        Add GRAMMAR_CHECKING guard to the context menu grammar items.
9155
9156        * WebCoreSupport/WebContextMenuClient.mm:
9157        (fixMenusReceivedFromOldClients):
9158
91592013-06-13  Jer Noble  <jer.noble@apple.com>
9160
9161        Add support for AVFoundation-backed HTMLMediaElements in the WebVideoFullScreenController.
9162        https://bugs.webkit.org/show_bug.cgi?id=117597
9163
9164        Reviewed by Eric Carlson.
9165
9166        Allow AVFoundation to be enabled even when the FullScreen API is disabled.
9167
9168        * WebView/WebView.mm:
9169        (-[WebView _preferencesChanged:]): 
9170
91712013-06-12  Anders Carlsson  <andersca@apple.com>
9172
9173        Remove the notion of inactive plug-ins
9174        https://bugs.webkit.org/show_bug.cgi?id=117570
9175        <rdar://problem/13484213>
9176
9177        Reviewed by Tim Horton.
9178
9179        Remove code that deals with inactive plug-ins.
9180
9181        * WebCoreSupport/WebChromeClient.mm:
9182        (WebChromeClient::shouldUnavailablePluginMessageBeButton):
9183        (WebChromeClient::unavailablePluginButtonClicked):
9184        * WebCoreSupport/WebFrameLoaderClient.mm:
9185        (WebFrameLoaderClient::createPlugin):
9186
91872013-06-12  Zan Dobersek  <zdobersek@igalia.com>
9188
9189        Remove memoryInfoEnabled, quantizedMemoryInfoEnabled settings
9190        https://bugs.webkit.org/show_bug.cgi?id=117512
9191
9192        Reviewed by Darin Adler.
9193
9194        * WebKit.order: Remove the memoryInfoEnabled entry.
9195        * WebView/WebPreferenceKeysPrivate.h: Remove WebKitMemoryInfoEnabledPreferenceKey.
9196        * WebView/WebPreferences.mm: Remove memoryInfoEnabled, setMemoryInfoEnabled methods.
9197        (+[WebPreferences initialize]): Don't set the default value for the WebKitMemoryInfoEnabledPreferenceKey, the preference is being removed.
9198        * WebView/WebPreferencesPrivate.h: Remove memoryInfoEnabled, setMemoryInfoEnabled method declarations.
9199        * WebView/WebView.mm:
9200        (-[WebView _preferencesChanged:]): Remove the call to Settings::setMemoryInfoEnabled, the setting is being removed.
9201
92022013-06-06  Timothy Hatcher  <timothy@apple.com>
9203
9204        Update the framework bundle identifier for the Web Inspector.
9205
9206        Reviewed by Mark Rowe.
9207
9208        * WebCoreSupport/WebInspectorClient.mm:
9209        (useWebKitWebInspector):
9210        (WebInspectorFrontendClient::localizedStringsURL):
9211        (-[WebInspectorWindowController inspectorPagePath]):
9212
92132013-06-05  Bear Travis  <betravis@adobe.com>
9214
9215        [CSS Exclusions][CSS Shapes] Split CSS Exclusions & Shapes compile & runtime flags
9216        https://bugs.webkit.org/show_bug.cgi?id=117172
9217
9218        Reviewed by Alexandru Chiculita.
9219
9220        Adding the CSS_SHAPES compile flag.
9221
9222        * Configurations/FeatureDefines.xcconfig:
9223
92242013-06-01  Andreas Kling  <akling@apple.com>
9225
9226        Remove unnused WebDOMNodeOperationsInternal category.
9227        <http://webkit.org/b/117105>
9228
9229        Reviewed by Ryosuke Niwa.
9230
9231        _subresourceURLs had no clients.
9232
9233        * DOM/WebDOMOperations.mm:
9234
92352013-06-01  Andreas Kling  <akling@apple.com>
9236
9237        Move Node::hasID() and hasClass() to Element.
9238        <http://webkit.org/b/117104>
9239
9240        Reviewed by Ryosuke Niwa.
9241
9242        * WebView/WebRenderLayer.mm:
9243        (+[WebRenderLayer nameForLayer:]):
9244
92452013-05-31  Stephanie Lewis  <slewis@apple.com>
9246
9247        Update low memory handler to use new memory pressure notifications on new OS versions.
9248        <rdar://problem/14027095> 
9249
9250        Reviewed by Mark Rowe.
9251
9252        * WebCoreSupport/WebSystemInterface.mm:
9253        (InitWebCoreSystemInterface):
9254
92552013-05-29  Jeffrey Pfau  <jpfau@apple.com>
9256
9257        [Mac] Enable cache partitioning and the public suffix list on 10.8
9258        <rdar://problem/13679019>
9259
9260        Rubber-stamped by David Kilzer.
9261
9262        * Configurations/FeatureDefines.xcconfig:
9263
92642013-05-29  Joseph Pecoraro  <pecoraro@apple.com>
9265
9266        Web Inspector: get rid of obsolete InspectorFrontendHost.hiddenPanels()
9267        https://bugs.webkit.org/show_bug.cgi?id=60152
9268
9269        Reviewed by Andreas Kling.
9270
9271        * WebCoreSupport/WebInspectorClient.mm:
9272
92732013-05-28  Joseph Pecoraro  <pecoraro@apple.com>
9274
9275        Drag to move DOM nodes does not work
9276        https://bugs.webkit.org/show_bug.cgi?id=116865
9277
9278        Do not block drag events on the WebKit 1 Web Inspector WebView.
9279
9280        Reviewed by Timothy Hatcher.
9281
9282        * WebCoreSupport/WebInspectorClient.mm:
9283
92842013-05-28  Andreas Kling  <akling@apple.com>
9285
9286        Document::setFocusedNode() should be setFocusedElement().
9287        <http://webkit.org/b/116857>
9288
9289        Reviewed by Antti Koivisto.
9290
9291        * WebView/WebHTMLView.mm:
9292        (-[WebHTMLView clearFocus]):
9293        (-[WebHTMLView becomeFirstResponder]):
9294
92952013-05-25  Andreas Kling  <akling@apple.com>
9296
9297        Remove Document::getFocusableNodes().
9298        <http://webkit.org/b/116773>
9299
9300        Reviewed by Joseph Pecoraro.
9301
9302        Remove the private _focusableNodes API on DOMDocument, it has no clients.
9303
9304        * DOM/WebDOMOperations.mm:
9305        * DOM/WebDOMOperationsPrivate.h:
9306
93072013-05-25  Simon Fraser  <simon.fraser@apple.com>
9308
9309        Unprefix Page Visibility API
9310        https://bugs.webkit.org/show_bug.cgi?id=102340
9311
9312        Reviewed by Tim Horton.
9313
9314        Renaming of the "preview" state to "unloaded".
9315
9316        * WebView/WebView.mm:
9317        * WebView/WebViewPrivate.h:
9318
93192013-05-25  Dan Bernstein  <mitz@apple.com>
9320
9321        <rdar://problem/13924889> -webView:didPerformClientRedirectFromURL:toURL:inFrame: should be given the redirecting URL as the “from” URL
9322        https://bugs.webkit.org/show_bug.cgi?id=116733
9323
9324        Reviewed by Adele Peterson.
9325
9326        By the time the history controller calls updateGlobalHistoryRedirectLinks(), the document
9327        loader already reflects the destination URL. In order to be able to provide the immediate
9328        source URL to the delegate, we make WebFrame track a URL and provisional URL, updating them
9329        in response to FrameLoader callbacks in exactly the same way WebFrameProxy maintains its
9330        m_url and m_provisionalURL member variables.
9331
9332        * WebCoreSupport/WebFrameLoaderClient.mm:
9333        (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Update
9334        provisionalURL.
9335        (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage): Update url.
9336        (WebFrameLoaderClient::dispatchDidPushStateWithinPage): Ditto.
9337        (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage): Ditto.
9338        (WebFrameLoaderClient::dispatchDidPopStateWithinPage): Ditto.
9339        (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Update provisionalURL.
9340        (WebFrameLoaderClient::dispatchDidCommitLoad): Update URL and provisionalURL.
9341        (WebFrameLoaderClient::dispatchDidFailProvisionalLoad): Clear provisionalURL.
9342        (WebFrameLoaderClient::dispatchDidFailLoad): Added an assertion.
9343        (WebFrameLoaderClient::dispatchDidFinishLoad): Ditto.
9344        (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): Pass the last committed URL as the
9345        source, rather than clientRedirectSourceForHistory().
9346        * WebView/WebFrameInternal.h: Added url and provisionalURL ivars to WebFramePrivate.
9347
93482013-05-24  Anders Carlsson  <andersca@apple.com>
9349
9350        Remove using namespace std from Mac WebKit1
9351        https://bugs.webkit.org/show_bug.cgi?id=116747
9352
9353        Reviewed by Sam Weinig.
9354
9355        Use explicit std:: qualifiers instead.
9356
9357        * History/BinaryPropertyList.cpp:
9358        (IntegerArray::deletedValueSize):
9359        (BinaryPropertyListPlan::invalidObjectReference):
9360        (bytesNeeded):
9361        * History/WebHistory.mm:
9362        (-[WebHistoryPrivate orderedLastVisitedDays]):
9363        (WebHistoryWriter::WebHistoryWriter):
9364        * History/WebHistoryItem.mm:
9365        (-[WebHistoryItem initFromDictionaryRepresentation:]):
9366        * Plugins/Hosted/NetscapePluginHostManager.mm:
9367        (WebKit::NetscapePluginHostManager::instantiatePlugin):
9368        * Plugins/Hosted/NetscapePluginHostProxy.mm:
9369        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
9370        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
9371        (WebKit::NetscapePluginInstanceProxy::wheelEvent):
9372        (WebKit::NetscapePluginInstanceProxy::print):
9373        (WebKit::NetscapePluginInstanceProxy::snapshot):
9374        (WebKit::NetscapePluginInstanceProxy::loadURL):
9375        (WebKit::NetscapePluginInstanceProxy::createBindingsInstance):
9376        * Plugins/Hosted/ProxyInstance.mm:
9377        (WebKit::ProxyInstance::invoke):
9378        (WebKit::ProxyInstance::supportsInvokeDefaultMethod):
9379        (WebKit::ProxyInstance::supportsConstruct):
9380        (WebKit::ProxyInstance::getPropertyNames):
9381        (WebKit::ProxyInstance::methodNamed):
9382        (WebKit::ProxyInstance::fieldNamed):
9383        (WebKit::ProxyInstance::fieldValue):
9384        (WebKit::ProxyInstance::setFieldValue):
9385        * Plugins/WebBasePluginPackage.mm:
9386        (-[WebBasePluginPackage supportsExtension:]):
9387        (-[WebBasePluginPackage MIMETypeForExtension:]):
9388        * Plugins/WebNetscapePluginStream.mm:
9389        (WebNetscapePluginStream::deliverData):
9390        * Plugins/WebNetscapePluginView.mm:
9391        (PluginTimer::start):
9392        (-[WebNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
9393        * WebCoreSupport/WebFrameLoaderClient.mm:
9394        * WebView/WebFrame.mm:
9395        * WebView/WebHTMLView.mm:
9396        (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
9397        * WebView/WebTextCompletionController.mm:
9398        (-[WebTextCompletionController _placePopupWindow:]):
9399
94002013-05-24  Anders Carlsson  <andersca@apple.com>
9401
9402        Move history property list writer to WebKit
9403        https://bugs.webkit.org/show_bug.cgi?id=116746
9404
9405        Reviewed by Tim Horton.
9406
9407        Move WebCore history files to WebKit since they're only used by WebKit now.
9408
9409        * History/BinaryPropertyList.cpp: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.cpp.
9410        * History/BinaryPropertyList.h: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.h.
9411        * History/HistoryPropertyList.cpp: Renamed from Source/WebCore/history/cf/HistoryPropertyList.cpp.
9412        * History/HistoryPropertyList.h: Renamed from Source/WebCore/history/cf/HistoryPropertyList.h.
9413        * History/WebHistory.mm:
9414
94152013-05-24  Christophe Dumez  <ch.dumez@sisa.samsung.com>
9416
9417        Remove custom code for webkitAudioContext global constructor getter
9418        https://bugs.webkit.org/show_bug.cgi?id=116530
9419
9420        Reviewed by Geoffrey Garen.
9421
9422        Use RuntimeEnabledFeatures instead of Settings to toggle Web Audio support.
9423
9424        * WebView/WebView.mm:
9425        (-[WebView _preferencesChanged:]):
9426
94272013-05-23  Anders Carlsson  <andersca@apple.com>
9428
9429        Crash in convertMainResourceLoadToDownload when downloading file by option-return
9430        https://bugs.webkit.org/show_bug.cgi?id=116451
9431
9432        Reviewed by Andreas Kling.
9433
9434        If the main resource loader is null, create a new download instead since there's no existing loader to convert.
9435
9436        * WebCoreSupport/WebFrameLoaderClient.mm:
9437        (WebFrameLoaderClient::convertMainResourceLoadToDownload):
9438
94392013-05-22  Simon Fraser  <simon.fraser@apple.com>
9440
9441        Fix issues with focus rings on search fields
9442        https://bugs.webkit.org/show_bug.cgi?id=116591
9443
9444        Reviewed by Darin Adler.
9445        
9446        In WebKit1, focus rings didn't render correctly on some OSes until
9447        some other control drew a focus ring, which changes internal AppKit state
9448        on the focused view. Fix by overriding an internal AppKit method to always
9449        disable AppKit's "automatic" focus ring drawing.
9450
9451        * WebView/WebHTMLView.mm:
9452        (-[WebHTMLView _automaticFocusRingDisabled]):
9453
94542013-05-20  David Kilzer  <ddkilzer@apple.com>
9455
9456        Synchronize FeatureDefines.xcconfig
9457
9458        * Configurations/FeatureDefines.xcconfig: Add a newline to the
9459        end of the file.
9460
94612013-05-19  Anders Carlsson  <andersca@apple.com>
9462
9463        Remove link prerendering code
9464        https://bugs.webkit.org/show_bug.cgi?id=116415
9465
9466        Reviewed by Darin Adler.
9467
9468        This code was only used by Chromium and is dead now.
9469
9470        * Configurations/FeatureDefines.xcconfig:
9471
94722013-05-19  Anders Carlsson  <andersca@apple.com>
9473
9474        Remove ChromeClient::webView()
9475        https://bugs.webkit.org/show_bug.cgi?id=116054
9476
9477        Reviewed by Darin Adler.
9478
9479        This blatantly horrible layer violation was only used to know if a ChromeClient is an empty
9480        client or not. We already have a (slightly less horrible) way to do that.
9481
9482        * WebCoreSupport/WebChromeClient.h:
9483        (WebChromeClient):
9484
94852013-05-17  Anders Carlsson  <andersca@apple.com>
9486
9487        Accessing null function pointers is bad.
9488
9489        * WebCoreSupport/WebFrameLoaderClient.mm:
9490
94912013-05-17  Anders Carlsson  <andersca@apple.com>
9492
9493        Make kit(Frame*) more robust
9494        https://bugs.webkit.org/show_bug.cgi?id=116324
9495
9496        Reviewed by Darin Adler.
9497
9498        Check that the frame loader's client isn't the EmptyFrameLoaderClient (or a subclass thereof)
9499        before casting to WebFrameLoaderClient.
9500
9501        * WebView/WebFrame.mm:
9502        (kit):
9503
95042013-05-17  Anders Carlsson  <andersca@apple.com>
9505
9506        Move the policy function to WebFramePolicyListener
9507        https://bugs.webkit.org/show_bug.cgi?id=116323
9508
9509        Reviewed by Darin Adler.
9510
9511        There's no need for the WebFrameLoaaderClient to hold on to the policy function,
9512        so move it to WebFramePolicyListener. This gets rid of another WebFrameLoaderClient cast.
9513
9514        * WebCoreSupport/WebFrameLoaderClient.mm:
9515        (WebFrameLoaderClient::setUpPolicyListener):
9516        Pass the policy function when creating the WebFramePolicyListener object.
9517
95182013-05-17  Anders Carlsson  <andersca@apple.com>
9519
9520        WebFramePolicyListener should keep its Frame in a RefPtr
9521        https://bugs.webkit.org/show_bug.cgi?id=116322
9522
9523        Reviewed by Darin Adler.
9524
9525        * WebCoreSupport/WebFrameLoaderClient.mm:
9526        (-[WebFramePolicyListener initWithWebCoreFrame:]):
9527        No need to ref the frame, the RefPtr does that for us.
9528
9529        (-[WebFramePolicyListener invalidate]):
9530        Just set the frame to null.
9531
9532        (-[WebFramePolicyListener dealloc]):
9533        Remove call to deref, that's done automatically now.
9534
9535        (-[WebFramePolicyListener finalize]):
9536        Remove this method. (We could have kept it just for the assertion but I didn't think that was necessary).
9537
9538        (-[WebFramePolicyListener receivedPolicyDecision:):
9539        Use release() to transfer ownership.
9540
95412013-05-17  Anders Carlsson  <andersca@apple.com>
9542
9543        Reduce number of WebFrameLoaderClient static casts in WebKit
9544        https://bugs.webkit.org/show_bug.cgi?id=116320
9545
9546        Reviewed by Antti Koivisto.
9547
9548        We already have a function to return a WebFrame from a WebCore::Frame, use it.
9549
9550        * DOM/WebDOMOperations.mm:
9551        (WebFrameFilter::shouldIncludeSubframe):
9552        * WebView/WebDataSource.mm:
9553        (-[WebDataSource webFrame]):
9554
95552013-05-16  Commit Queue  <commit-queue@webkit.org>
9556
9557        Unreviewed, rolling out r150034.
9558        http://trac.webkit.org/changeset/150034
9559        https://bugs.webkit.org/show_bug.cgi?id=116257
9560
9561        This work around doesn't work due to another bug NSUndoManager
9562        has (Requested by rniwa on #webkit).
9563
9564        * WebCoreSupport/WebEditorClient.mm:
9565        (WebEditorClient::registerUndoOrRedoStep):
9566
95672013-05-16  Tim Horton  <timothy_horton@apple.com>
9568
9569        PDFPlugins don't load when plugins are disabled, but they should
9570        https://bugs.webkit.org/show_bug.cgi?id=75790
9571        <rdar://problem/11650197>
9572
9573        Reviewed by Anders Carlsson.
9574
9575        * Plugins/WebBasePluginPackage.mm:
9576        (-[WebBasePluginPackage getPluginInfoFromPLists]):
9577        * Plugins/WebNetscapePluginPackage.mm:
9578        (-[WebNetscapePluginPackage getPluginInfoFromResources]):
9579        Nothing loaded via WebBasePluginPackage or WebNetscapePluginPackage
9580        is an application plugin.
9581
9582        * WebView/WebFrame.mm:
9583        (-[WebFrame _canProvideDocumentSource]):
9584        Previously, this caller depended on pluginData() returning null if
9585        plug-ins were disabled. Since that is no longer the case, we have to
9586        check if we can use plug-ins, and otherwise ignore non-application-plug-ins.
9587
95882013-05-16  Andreas Kling  <akling@apple.com>
9589
9590        Page::chrome() should return a reference.
9591        <http://webkit.org/b/116185>
9592
9593        Reviewed by Anders Carlsson.
9594
95952013-05-16  Dan Bernstein  <mitz@apple.com>
9596
9597        -webView:updateHistoryTitle:forURL: does not pass a frame to the delegate
9598        https://bugs.webkit.org/show_bug.cgi?id=116243
9599
9600        Reviewed by Anders Carlsson.
9601
9602        Added a WebFrame parameter to the delegate method.
9603
9604        * WebCoreSupport/WebFrameLoaderClient.mm:
9605        (WebFrameLoaderClient::setTitle): Pass the frame to the delegate. Maintain
9606        compatibility with clients that implement the old delegate method that
9607        doesn’t take a frame.
9608        * WebView/WebDelegateImplementationCaching.h:
9609        (WebHistoryDelegateImplementationCache): Added a field to cache the
9610        implementation of the old delegate method.
9611        * WebView/WebHistoryDelegate.h: Changed the signature of the delegate method.
9612        * WebView/WebView.mm:
9613        (-[WebView _cacheHistoryDelegateImplementations]): Cache the implementation
9614        of the new delegate method, but also check for the old one.
9615
96162013-05-16  Simon Fraser  <simon.fraser@apple.com>
9617
9618        Re-land r150168 with some OS version guards.
9619
9620        * WebView/WebFrameView.mm:
9621        (-[WebFrameView drawRect:]):
9622        (-[WebFrameView wantsUpdateLayer]):
9623        (-[WebFrameView updateLayer]):
9624
96252013-05-16  Commit Queue  <commit-queue@webkit.org>
9626
9627        Unreviewed, rolling out r150168.
9628        http://trac.webkit.org/changeset/150168
9629        https://bugs.webkit.org/show_bug.cgi?id=116214
9630
9631        broke the world on Mountain Lion (Requested by thorton on
9632        #webkit).
9633
9634        * WebView/WebFrameView.mm:
9635        (-[WebFrameView drawRect:]):
9636
96372013-05-15  Simon Fraser  <simon.fraser@apple.com>
9638
9639        Avoid backing store for the WebFrameView's layer when the WebView is layer-backed
9640        https://bugs.webkit.org/show_bug.cgi?id=116172
9641
9642        Reviewed by Tim Horton.
9643
9644        When the WebView is layer-backed, AppKit will create a layer with backing store for
9645        the WebFrameView because it implements drawRect:. However, this method only paints
9646        when there is no documentView, so this layer’s backing store is wasteful.
9647
9648        We can avoid allocation of this backing store by implementing -wantsUpdateLayer
9649        and -updateLayer, and setting the view’s backgroundColor.
9650
9651        * WebView/WebFrameView.mm:
9652        (-[WebFrameView wantsUpdateLayer]):
9653        (-[WebFrameView updateLayer]):
9654
96552013-05-13  Anders Carlsson  <andersca@apple.com>
9656
9657        Frame::editor() should return a reference
9658        https://bugs.webkit.org/show_bug.cgi?id=116037
9659
9660        Reviewed by Darin Adler.
9661
9662        * WebView/WebFrame.mm:
9663        (-[WebFrame _selectedString]):
9664        (-[WebFrame _firstRectForDOMRange:]):
9665        (-[WebFrame _markDOMRange]):
9666        (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
9667        (-[WebFrame _setTypingStyle:withUndoAction:]):
9668        (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
9669        * WebView/WebHTMLRepresentation.mm:
9670        (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
9671        * WebView/WebHTMLView.mm:
9672        (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
9673        (-[WebHTMLView _shouldDeleteRange:]):
9674        (-[WebHTMLView _canEdit]):
9675        (-[WebHTMLView _canEditRichly]):
9676        (-[WebHTMLView _insertOrderedList]):
9677        (-[WebHTMLView _insertUnorderedList]):
9678        (-[WebHTMLView _canIncreaseSelectionListLevel]):
9679        (-[WebHTMLView _canDecreaseSelectionListLevel]):
9680        (-[WebHTMLView _increaseSelectionListLevel]):
9681        (-[WebHTMLView _increaseSelectionListLevelOrdered]):
9682        (-[WebHTMLView _increaseSelectionListLevelUnordered]):
9683        (-[WebHTMLView _decreaseSelectionListLevel]):
9684        (-[WebHTMLView Editor::coreCommandBySelector:]):
9685        (-[WebHTMLView Editor::coreCommandByName:]):
9686        (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
9687        (-[WebHTMLView becomeFirstResponder]):
9688        (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
9689        (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
9690        (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
9691        (-[WebHTMLView checkSpelling:]):
9692        (-[WebHTMLView showGuessPanel:]):
9693        (-[WebHTMLView toggleBaseWritingDirection:]):
9694        (-[WebHTMLView changeBaseWritingDirection:]):
9695        (-[WebHTMLView _changeBaseWritingDirectionTo:]):
9696        (-[WebHTMLView _updateFontPanel]):
9697        (-[WebHTMLView markedRange]):
9698        (-[WebHTMLView hasMarkedText]):
9699        (-[WebHTMLView unmarkText]):
9700        (-[WebHTMLView setMarkedText:selectedRange:]):
9701        (-[WebHTMLView doCommandBySelector:]):
9702        (-[WebHTMLView insertText:]):
9703        (-[WebHTMLView _updateSelectionForInputManager]):
9704        (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
9705        (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
9706        (-[WebHTMLView markedTextMatchesAreHighlighted]):
9707        (-[WebHTMLView _findString:options:]):
9708        * WebView/WebView.mm:
9709        (-[WebView _executeCoreCommandByName:value:]):
9710        (-[WebView editableDOMRangeForPoint:]):
9711        (-[WebView setEditable:]):
9712        (-[WebView deleteSelection]):
9713        (-[WebView applyStyle:]):
9714        (-[WebView typingAttributes]):
9715        (-[WebView _simplifyMarkup:endNode:]):
9716        (-[WebView handleAcceptedAlternativeText:]):
9717
97182013-05-15  Darin Adler  <darin@apple.com>
9719
9720        [Mac] Remove the ClipboardMac class and header file
9721        https://bugs.webkit.org/show_bug.cgi?id=116165
9722
9723        Reviewed by Anders Carlsson.
9724
9725        * WebCoreSupport/WebDragClient.mm: Import Clipboard.h instead of ClipboardMac.h.
9726
97272013-05-15  Darin Adler  <darin@apple.com>
9728
9729        [Mac] Thin out the ClipboardMac class and header file to prepare for deleting them
9730        https://bugs.webkit.org/show_bug.cgi?id=116159
9731
9732        Reviewed by Andreas Kling.
9733
9734        * WebCoreSupport/WebDragClient.mm:
9735        (WebDragClient::willPerformDragSourceAction): Changed to get the pasteboard name
9736        without going through the ClipboardMac class.
9737        (WebDragClient::startDrag): Ditto.
9738
97392013-05-14  Beth Dakin  <bdakin@apple.com>
9740
9741        Printing in 1Password app is broken with screen fonts disabled
9742        https://bugs.webkit.org/show_bug.cgi?id=116133
9743        -and corresponding-
9744        <rdar://problem/13162981>
9745
9746        Reviewed by Anders Carlsson.
9747
9748        Return YES from [WebPreferences screenFontSubstitutionEnabled] for versions of the 
9749        1Password app that were linked on or before MountainLion.
9750
9751        * WebView/WebPreferences.mm:
9752        (needsScreenFontsEnabledQuirk):
9753        (-[WebPreferences screenFontSubstitutionEnabled]):
9754
97552013-05-13  Dan Bernstein  <mitz@apple.com>
9756
9757        Make -[WebNavigationData url] the destination of the navigation
9758        https://bugs.webkit.org/show_bug.cgi?id=114904
9759
9760        Reviewed by Dave Kilzer.
9761
9762        * WebCoreSupport/WebFrameLoaderClient.mm:
9763        (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with the
9764        current URL, not the original request URL.
9765
97662013-05-13  Anders Carlsson  <andersca@apple.com>
9767
9768        Remove ChromeClient::willPopupMenu
9769        https://bugs.webkit.org/show_bug.cgi?id=116063
9770
9771        Reviewed by Andreas Kling.
9772
9773        ChromeClient::willPopupMenu is only called in one place from WebKit, so just move the function to the call site.
9774
9775        * WebCoreSupport/PopupMenuMac.mm:
9776        (PopupMenuMac::show):
9777        * WebCoreSupport/WebChromeClient.h:
9778        * WebCoreSupport/WebChromeClient.mm:
9779
97802013-05-12  Timothy Hatcher  <timothy@apple.com>
9781
9782        Add support for updating the Web Inspector toolbar height.
9783
9784        https://bugs.webkit.org/show_bug.cgi?id=115996
9785
9786        Reviewed by Joseph Pecoraro and Benjamin Poulain.
9787
9788        * WebCoreSupport/WebInspectorClient.h:
9789        * WebCoreSupport/WebInspectorClient.mm:
9790        (WebInspectorFrontendClient::setToolbarHeight):
9791
97922013-05-13  Ryosuke Niwa  <rniwa@webkit.org>
9793
9794        Sometimes NSUndoManager can get into an inconsistent state
9795        https://bugs.webkit.org/show_bug.cgi?id=116050
9796
9797        Reviewed by Enrica Casucci.
9798
9799        Always group undo items to work around a bug in NSUndoManager that manifests
9800        when we call removeAllActionsWithTarget.
9801
9802        * WebCoreSupport/WebEditorClient.mm:
9803        (WebEditorClient::registerUndoOrRedoStep):
9804
98052013-05-13  Zalan Bujtas  <zalan@apple.com>
9806
9807        WebProcess consuming very high CPU on linkedin.com
9808        https://bugs.webkit.org/show_bug.cgi?id=115601
9809
9810        Reviewed by Andreas Kling.
9811
9812        Disable WEB_TIMING_MINIMAL.
9813        Turn off window.performance and performance.now(). Some JS frameworks expect
9814        additional Web Timing APIs, when performance.now() is available.
9815
9816        * Configurations/FeatureDefines.xcconfig:
9817
98182013-05-13  Darin Adler  <darin@apple.com>
9819
9820        [Mac] Layer-backed WebViews draw their background color even when setDrawsBackground:NO was called
9821        https://bugs.webkit.org/show_bug.cgi?id=116014
9822        <rdar://problem/12781227>
9823
9824        Reviewed by Dan Bernstein.
9825
9826        * WebView/WebFrame.mm:
9827        (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]): Remove calls to setBackgroundColor: and
9828        setDrawsBackground: on the document view. These were added to support a hypothetical document view
9829        that wanted to draw its background like WebHTMLView does, but this was never communicated as a
9830        document view protocol, formal or informal, and it's unlikely that it was ever used. The bug was
9831        caused because there is an -[NSView setDrawsBackground:] method, probably an internal one, and we
9832        were calling it unintentionally on a WebHTMLView.
9833
98342013-05-12  Anders Carlsson  <andersca@apple.com>
9835
9836        Stop including UnusedParam.h
9837        https://bugs.webkit.org/show_bug.cgi?id=116003
9838
9839        Reviewed by Sam Weinig.
9840
9841        UnusedParam.h is empty now so there's no need to include it anymore.
9842
9843        * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
9844        * WebView/WebDashboardRegion.mm:
9845        * WebView/WebFullScreenController.mm:
9846
98472013-05-12  Andreas Kling  <akling@apple.com>
9848
9849        Unload event listeners should prevent Safari from insta-killing the web process on last tab close.
9850        <http://webkit.org/b/115988>
9851        <rdar://problem/13870943>
9852
9853        Reviewed by Anders Carlsson.
9854
9855        * WebCoreSupport/WebChromeClient.h:
9856        * WebCoreSupport/WebChromeClient.mm:
9857        (WebChromeClient::enableSuddenTermination):
9858        (WebChromeClient::disableSuddenTermination):
9859
98602013-05-10  Brian J. Burg  <burg@cs.washington.edu>
9861
9862        Web Inspector: Implement WK2 version of WebInspectorFrontendClient::save
9863        https://bugs.webkit.org/show_bug.cgi?id=115564
9864
9865        Reviewed by Benjamin Poulain.
9866
9867        Clean up save() and append() implementations.
9868
9869        * WebCoreSupport/WebInspectorClient.h:
9870        * WebCoreSupport/WebInspectorClient.mm:
9871        (WebInspectorFrontendClient::save):
9872        (WebInspectorFrontendClient::append):
9873
98742013-05-10  Laszlo Gombos  <l.gombos@samsung.com>
9875
9876        Remove Mac OS X Leopard (10.5) support
9877        https://bugs.webkit.org/show_bug.cgi?id=107964
9878
9879        Reviewed by Ryosuke Niwa.
9880
9881        Removed the code for 10.5 and removed if-def for 10.6.
9882
9883        * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
9884        * Misc/WebKitErrors.m:
9885        (-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]):
9886        * WebCoreSupport/WebSystemInterface.mm:
9887        (InitWebCoreSystemInterface):
9888        * WebView/WebClipView.mm:
9889        (-[WebClipView _immediateScrollToPoint:]):
9890        * WebView/WebFrameView.mm:
9891        (-[WebFrameView initWithFrame:]):
9892        * WebView/WebView.mm:
9893
98942013-05-07  Mark Rowe  <mrowe@apple.com>
9895
9896        <rdar://problem/13633007> WebKit and others fail to build headers due to build root dependency
9897
9898        Reviewed by Sam Weinig.
9899
9900        * Configurations/WebKit.xcconfig: Look for WebCore's headers within the SDK if we're building against one.
9901
99022013-05-07  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
9903
9904        HashTraits<RefPtr<P> >::PeekType should be raw pointer for better performance
9905        https://bugs.webkit.org/show_bug.cgi?id=115646
9906
9907        Reviewed by Darin Adler.
9908
9909        * Plugins/Hosted/NetscapePluginHostProxy.mm:
9910        (WebKit::NetscapePluginHostProxy::pluginInstance):
9911        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
9912        (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad):
9913            Updated accordingly to new HashMap<.., RefPtr>::get() semantics.
9914
99152013-05-04  Dean Jackson  <dino@apple.com>
9916
9917        Animations and Transitions should not start when globally suspended
9918        https://bugs.webkit.org/show_bug.cgi?id=114915
9919
9920        Reviewed by Sam Weinig.
9921
9922        The WebView private API cssAnimationsSuspended did not necessarily
9923        reflect the reality of the Frame's AnimationController value because it
9924        was caching rather than asking directly. While the WebCore part of this
9925        patch ensured loading the Document wouldn't resume all animations, it
9926        is still better to ask directly.
9927
9928        * WebView/WebView.mm:
9929        (-[WebView cssAnimationsSuspended]): Call into AnimationController.
9930        (-[WebView setCSSAnimationsSuspended:]): Ditto.
9931        * WebView/WebViewData.h: Remove cssAnimationsSuspended boolean.
9932        * WebView/WebViewData.mm: Ditto.
9933        (-[WebViewPrivate init]):
9934
99352013-05-04  Sam Weinig  <sam@webkit.org>
9936
9937        Move PopupMenuMac and SearchPopupMenuMac to Source/WebKit/mac
9938        matching where they are in WebKit2.
9939
9940        Reviewed by Anders Carlsson.
9941
9942        * WebCoreSupport/PopupMenuMac.h: Copied from WebCore/platform/mac/PopupMenuMac.h.
9943        * WebCoreSupport/PopupMenuMac.mm: Copied from WebCore/platform/mac/PopupMenuMac.mm.
9944        * WebCoreSupport/SearchPopupMenuMac.h: Copied from WebCore/platform/mac/SearchPopupMenuMac.h.
9945        * WebCoreSupport/SearchPopupMenuMac.mm: Copied from WebCore/platform/mac/SearchPopupMenuMac.mm.
9946        * WebCoreSupport/WebChromeClient.mm:
9947
99482013-05-04  Anders Carlsson  <andersca@apple.com>
9949
9950        Get rid of -[NSMutableDictionary _webkit_setObject:forUncopiedKey:]
9951        https://bugs.webkit.org/show_bug.cgi?id=115592
9952
9953        Reviewed by Beth Dakin.
9954
9955        Using CFDictionarySetValue to set a key without having to copy it is not supported. Use NSMapTable with strong pointers instead.
9956
9957        * Misc/WebNSDictionaryExtras.h:
9958        * Misc/WebNSDictionaryExtras.m:
9959        * Panels/WebPanelAuthenticationHandler.h:
9960        (NSURLAuthenticationChallenge):
9961        * Panels/WebPanelAuthenticationHandler.m:
9962        (-[WebPanelAuthenticationHandler init]):
9963        (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
9964        (-[WebPanelAuthenticationHandler tryNextChallengeForWindow:]):
9965        (-[WebPanelAuthenticationHandler startAuthentication:window:]):
9966        (-[WebPanelAuthenticationHandler cancelAuthentication:]):
9967        * Plugins/WebNetscapePluginView.h:
9968        * Plugins/WebNetscapePluginView.mm:
9969        (-[WebNetscapePluginView destroyPlugin]):
9970        (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
9971        (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
9972        (-[WebNetscapePluginView loadPluginRequest:]):
9973
99742011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
9975
9976        [Mac] WebKit doesn't enable or disable autocorrections when system preferences are changed
9977        https://bugs.webkit.org/show_bug.cgi?id=115463
9978
9979        Reviewed by Darin Adler.
9980
9981        Observe the default notification center for changes to autocorrection preferences.
9982        Note system preferences may also update WebAutomatic* defaults.
9983
9984        * WebView/WebView.mm:
9985        (+[WebView initialize]):
9986        (+[WebView _shouldAutomaticTextReplacementBeEnabled]):
9987        (+[WebView _didChangeAutomaticTextReplacementEnabled:]):
9988        (+[WebView _shouldAutomaticSpellingCorrectionBeEnabled]):
9989        (+[WebView _didChangeAutomaticSpellingCorrectionEnabled:]):
9990        (+[WebView _shouldAutomaticQuoteSubstitutionBeEnabled]):
9991        (+[WebView _shouldAutomaticDashSubstitutionBeEnabled]):
9992        (+[WebView _didChangeAutomaticQuoteSubstitutionEnabled:]):
9993        (+[WebView _didChangeAutomaticDashSubstitutionEnabled:]):
9994
99952013-05-01  Benjamin Poulain  <bpoulain@apple.com>
9996
9997        Fix the function names of r149453
9998
9999        Unreviewed.
10000
10001        I forgot to follow one of Darin's review comment. This patch
10002        fixes the function names to follow CF naming conventions.
10003
10004        * WebView/WebHTMLRepresentation.mm:
10005        (newArrayWithStrings):
10006        (newArrayByConcatenatingArrays):
10007        (+[WebHTMLRepresentation supportedMIMETypes]):
10008        (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
10009        (+[WebHTMLRepresentation supportedImageMIMETypes]):
10010        (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
10011
100122013-05-01  Benjamin Poulain  <benjamin@webkit.org>
10013
10014        Simplify WebHTMLRepresentation supportedMIMETypes methods
10015        https://bugs.webkit.org/show_bug.cgi?id=115314
10016
10017        Reviewed by Darin Adler.
10018
10019        The initialization was surprisingly complex because of DEFINE_STATIC_LOCAL.
10020        First, a new pointer was allocated on the heap with fast malloc (for RetainPtr<NSArray>).
10021        Then a new NSMutableArray was allocated but immediately put on the autorelease pool.
10022        Finally, that array was retained by the RetainPtr.
10023
10024        This patch changes the code to only leak the NSMutableArray memory. There
10025        is no fastMalloc, nor any use of the autorelease pool.
10026
10027        * WebView/WebHTMLRepresentation.mm:
10028        (createArrayWithStrings):
10029        (createArrayByConcatenatingArrays):
10030        (+[WebHTMLRepresentation supportedMIMETypes]):
10031        (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
10032        (+[WebHTMLRepresentation supportedImageMIMETypes]):
10033        (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
10034
100352013-04-30  Darin Adler  <darin@apple.com>
10036
10037        [Mac] Remove adoptNS/retain pairs, since the two cancel each other out
10038        https://bugs.webkit.org/show_bug.cgi?id=115426
10039
10040        Reviewed by Anders Carlsson.
10041
10042        * Plugins/WebNetscapePluginStream.mm:
10043        (WebNetscapePluginStream::deliverDataToFile): Remove adoptNS and release.
10044
100452013-04-30  Geoffrey Garen  <ggaren@apple.com>
10046
10047        Objective-C JavaScriptCore API should publicly support bridging to C
10048        https://bugs.webkit.org/show_bug.cgi?id=115447
10049
10050        Reviewed by Mark Hahnenberg.
10051
10052        * WebView/WebFrame.mm:
10053        (-[WebFrame _javaScriptContextForScriptWorld:]):
10054        * WebView/WebScriptWorld.mm:
10055        (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
10056
100572013-04-30  Anders Carlsson  <andersca@apple.com>
10058
10059        More StorageTracker cleanup
10060        https://bugs.webkit.org/show_bug.cgi?id=115429
10061
10062        Reviewed by Andreas Kling.
10063
10064        Call PageGroup::syncLocalStorage directly.
10065
10066        * Storage/WebStorageManager.mm:
10067        (-[WebStorageManager syncLocalStorage]):
10068
100692013-04-30  Zalan Bujtas  <zalan@apple.com>
10070
10071        Animations fail to start on http://www.google.com/insidesearch/howsearchworks/thestory/
10072        https://bugs.webkit.org/show_bug.cgi?id=111244
10073
10074        Reviewed by David Kilzer.
10075        
10076        Enable performance.now() as a minimal subset of Web Timing API. 
10077        It returns DOMHighResTimeStamp, a monotonically increasing value representing the 
10078        number of milliseconds from the start of the navigation of the current document.
10079        JS libraries use this API to check against the requestAnimationFrame() timestamp.
10080
10081        * Configurations/FeatureDefines.xcconfig:
10082
100832013-04-29  Chris Fleizach  <cfleizach@apple.com>
10084
10085        WEB SPEECH: need to identify the default voice per language
10086        https://bugs.webkit.org/show_bug.cgi?id=115366
10087
10088        Reviewed by Tim Horton.
10089
10090        * WebCoreSupport/WebSystemInterface.mm:
10091        (InitWebCoreSystemInterface):
10092
100932013-04-28  Dean Jackson  <dino@apple.com>
10094
10095        [Mac] Disable canvas backing store scaling (HIGH_DPI_CANVAS)
10096        https://bugs.webkit.org/show_bug.cgi?id=115310
10097
10098        Reviewed by Simon Fraser.
10099
10100        Remove ENABLE_HIGH_DPI_CANVAS_macosx.
10101
10102        * Configurations/FeatureDefines.xcconfig:
10103
101042013-04-27  Darin Adler  <darin@apple.com>
10105
10106        Move from constructor and member function adoptCF/NS to free function adoptCF/NS.
10107        https://bugs.webkit.org/show_bug.cgi?id=115307
10108
10109        Reviewed by Geoffrey Garen.
10110
10111        This change was done by a global replace followed by compiling and inspecting for
10112        cases that needed to be tweaked by hand.
10113
10114        * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
10115        (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
10116        * Misc/WebNSFileManagerExtras.mm:
10117        (-[NSFileManager _webkit_startupVolumeName]):
10118        * Plugins/Hosted/HostedNetscapePluginStream.mm:
10119        (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
10120        * Plugins/Hosted/NetscapePluginHostManager.mm:
10121        (WebKit::NetscapePluginHostManager::spawnPluginHost):
10122        (WebKit::NetscapePluginHostManager::instantiatePlugin):
10123        * Plugins/Hosted/NetscapePluginHostProxy.mm:
10124        (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
10125        (WebKit::NetscapePluginHostProxy::beginModal):
10126        (WKPCBooleanAndDataReply):
10127        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
10128        (WebKit::NetscapePluginInstanceProxy::print):
10129        (WebKit::NetscapePluginInstanceProxy::snapshot):
10130        (WebKit::NetscapePluginInstanceProxy::status):
10131        (WebKit::NetscapePluginInstanceProxy::loadURL):
10132        (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript):
10133        (WebKit::NetscapePluginInstanceProxy::enumerate):
10134        (WebKit::NetscapePluginInstanceProxy::marshalValue):
10135        (WebKit::NetscapePluginInstanceProxy::marshalValues):
10136        (WebKit::NetscapePluginInstanceProxy::demarshalValue):
10137        (WebKit::NetscapePluginInstanceProxy::demarshalValues):
10138        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
10139        (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]):
10140        (-[WebHostedNetscapePluginView createPlugin]):
10141        * Plugins/WebBaseNetscapePluginView.mm:
10142        (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
10143        (-[WebBaseNetscapePluginView cacheSnapshot]):
10144        (WebKit::getAuthenticationInfo):
10145        * Plugins/WebBasePluginPackage.mm:
10146        (-[WebBasePluginPackage initWithPath:]):
10147        * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
10148        (WebNetscapePluginEventHandlerCarbon::startTimers):
10149        * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
10150        (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
10151        (WebNetscapePluginEventHandlerCocoa::handleTSMEvent):
10152        * Plugins/WebNetscapePluginPackage.mm:
10153        (-[WebNetscapePluginPackage _initWithPath:]):
10154        * Plugins/WebNetscapePluginStream.mm:
10155        (WebNetscapePluginStream::WebNetscapePluginStream):
10156        (WebNetscapePluginStream::deliverData):
10157        (WebNetscapePluginStream::deliverDataToFile):
10158        (WebNetscapePluginStream::didReceiveData):
10159        * Plugins/WebNetscapePluginView.mm:
10160        (-[WebNetscapePluginView createPlugin]):
10161        (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
10162        (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
10163        * Storage/WebDatabaseManagerClient.mm:
10164        (WebDatabaseManagerClient::dispatchDidModifyOrigin):
10165        (WebDatabaseManagerClient::dispatchDidModifyDatabase):
10166        * Storage/WebStorageTrackerClient.mm:
10167        (WebStorageTrackerClient::dispatchDidModifyOrigin):
10168        * WebCoreSupport/CorrectionPanel.mm:
10169        (CorrectionPanel::handleAcceptedReplacement):
10170        * WebCoreSupport/WebApplicationCache.mm:
10171        (+[WebApplicationCache originsWithCache]):
10172        * WebCoreSupport/WebFrameLoaderClient.mm:
10173        (WebFrameLoaderClient::didRunInsecureContent):
10174        * WebCoreSupport/WebInspectorClient.mm:
10175        (WebInspectorClient::WebInspectorClient):
10176        (WebInspectorClient::openInspectorFrontend):
10177        * WebView/WebFullScreenController.mm:
10178        (-[WebFullScreenController enterFullScreen:]):
10179        * WebView/WebPDFDocumentExtras.mm:
10180        (allScriptsInPDFDocument):
10181        * WebView/WebPreferences.mm:
10182        (-[WebPreferences initWithIdentifier:]):
10183        (-[WebPreferences initWithCoder:]):
10184        * WebView/WebScriptDebugger.mm:
10185        (WebScriptDebugger::initGlobalCallFrame):
10186        (WebScriptDebugger::callEvent):
10187        * WebView/WebView.mm:
10188        (-[WebView previousValidKeyView]):
10189        Use adoptNS and adoptCF free functions.
10190
101912013-04-25  Roger Fong  <roger_fong@apple.com>
10192
10193        Disable sub-pixel layout on mac.
10194        https://bugs.webkit.org/show_bug.cgi?id=114999.
10195
10196        Reviewed by Simon Fraser.
10197
10198        * Configurations/FeatureDefines.xcconfig:
10199
102002013-04-26  Simon Fraser  <simon.fraser@apple.com>
10201
10202        Layer-backed WebViews don't repaint content outside the visible area
10203        https://bugs.webkit.org/show_bug.cgi?id=115275
10204
10205        Reviewed by Beth Dakin.
10206
10207        When a client of WebView makes the WebView be layer-backed, then
10208        AppKit propagaes the layer-backing down to the WebHTMLView (but
10209        no further).
10210        
10211        In this situation, we had a bug where content that was not
10212        in the visible content rect would not get repainted, because
10213        WebCore clips repaints to the visible rect.
10214        
10215        Fix by calling ScrollView::setPaintsEntireContents(bool) from
10216        -[WebHTMLView setLayer:], saying that we need
10217        to paint the entire contents if we have a layer.
10218
10219        * WebView/WebHTMLView.mm:
10220        (-[WebHTMLView setLayer:]):
10221
102222013-04-25  Chris Fleizach  <cfleizach@apple.com>
10223
10224        WEB SPEECH: language support does not work as expected
10225        https://bugs.webkit.org/show_bug.cgi?id=115119
10226
10227        Reviewed by Alexey Proskuryakov.
10228
10229        * WebCoreSupport/WebSystemInterface.mm:
10230        (InitWebCoreSystemInterface):
10231
102322013-04-25  Simon Fraser  <simon.fraser@apple.com>
10233
10234        Build fix for smart compliers.
10235
10236        Reviewed by Tim Horton.
10237        
10238        [NSDictionary dictionaryWithObjectsAndKeys:] returns an NSDictionary,
10239        not a NSMutableDictionary.
10240
10241        * WebCoreSupport/WebEditorClient.mm:
10242        (WebEditorClient::updateSpellingUIWithGrammarString):
10243
102442013-04-25  Joseph Pecoraro  <pecoraro@apple.com>
10245
10246        Web Inspector: ConsoleMessage should include line and column number where possible
10247        https://bugs.webkit.org/show_bug.cgi?id=114929
10248
10249        Reviewed by Timothy Hatcher.
10250
10251        * WebCoreSupport/WebChromeClient.h:
10252        * WebCoreSupport/WebChromeClient.mm:
10253        (WebChromeClient::addMessageToConsole):
10254
102552013-04-24  Jessie Berlin  <jberlin@apple.com>
10256
10257        Assertion failure (crash in release) attempting to delete database storage in WK1 without
10258        creating a WebView first
10259        https://bugs.webkit.org/show_bug.cgi?id=115065
10260
10261        Reviewed by Brady Eidson.
10262
10263        Make sure the WebPlatformStrategies is initialized before using the WebDatabaseManager.
10264
10265        * Storage/WebDatabaseManager.mm:
10266        (-[WebDatabaseManager init]):
10267        Move the logic from WebKitInitializeDatabasesIfNecessary here, and add a call to
10268        WebPlatformStrategies::initializeIfNecessary.
10269
10270        * Storage/WebDatabaseManagerInternal.h: Removed.
10271
10272        * WebCoreSupport/WebPlatformStrategies.h:
10273        (WebPlatformStrategies):
10274        Change "initialize" to "initalizeIfNecessary".
10275        * WebCoreSupport/WebPlatformStrategies.mm:
10276        (WebPlatformStrategies::initializeIfNecessary):
10277        Only call setPlatformStrategies once.
10278
10279        * WebView/WebView.mm:
10280        (-[WebView _commonInitializationWithFrameName:groupName:]):
10281        Updated for the name change from initialize to initializeIfNecessary.
10282        Instead of calling WebKitInitializeDatabasesIfNecessary, call [WebDatabaseManager
10283        sharedWebDatabaseManager].
10284        (+[WebView _setLoadResourcesSerially:]):
10285        Updated for the name change from initialize to initializeIfNecessary.
10286
102872013-04-23  Antoine Quint  <graouts@apple.com>
10288
10289        Initial advance of text runs should be taken into account
10290        https://bugs.webkit.org/show_bug.cgi?id=114949
10291
10292        Reviewed by Darin Adler.
10293
10294        Adding support for new method CTRunGetInitialAdvance in WebKitSystemInterface.
10295
10296        * WebCoreSupport/WebSystemInterface.mm:
10297        (InitWebCoreSystemInterface):
10298
102992013-04-22  Benjamin Poulain  <benjamin@webkit.org>
10300
10301        Remove the memory instrumentation code
10302        https://bugs.webkit.org/show_bug.cgi?id=114931
10303
10304        Reviewed by Andreas Kling.
10305
10306        * WebView/WebRenderLayer.mm:
10307
103082013-04-18  Andy Estes  <aestes@apple.com>
10309
10310        REGRESSION (r116645): Versions app's UI is munged in HiDPI due to background-size being reset to 'auto' when background short-hand is also specified
10311        https://bugs.webkit.org/show_bug.cgi?id=114833
10312
10313        Reviewed by David Kilzer.
10314
10315        The Versions app specifies both a background-size and a background
10316        shorthand CSS property, and its UI is broken after r116645 which resets
10317        background-size to 'auto' if the background shorthand property is
10318        specified.
10319
10320        This patch enables the useLegacyBackgroundSizeShorthandBehavior setting
10321        added in r147034 to restore the expected behavior if the embedder is
10322        Versions.app and it was linked against a version of WebKit that had the
10323        legacy behavior.
10324
10325        * Misc/WebKitVersionChecks.h:
10326        * WebView/WebView.mm:
10327        (shouldUseLegacyBackgroundSizeShorthandBehavior):
10328        (-[WebView _commonInitializationWithFrameName:groupName:]):
10329
103302013-04-18  Sam Weinig  <sam@webkit.org>
10331
10332        Network Process crashing trying to read in IDNScriptWhiteList.txt
10333        https://bugs.webkit.org/show_bug.cgi?id=114827
10334
10335        Reviewed by Anders Carlsson.
10336
10337        Move IDNScriptWhiteList.txt from WebKit to WebCore, so that the NetworkProcess does not have to link against
10338        WebKit. It was a layering violation for WebCore to be trying to access WebKit resources anyway.
10339
10340        * Resources/IDNScriptWhiteList.txt: Removed.
10341
103422013-04-17  Geoffrey Garen  <ggaren@apple.com>
10343
10344        Renamed JSGlobalData to VM
10345        https://bugs.webkit.org/show_bug.cgi?id=114777
10346
10347        Reviewed by Phil Pizlo.
10348
10349        * Misc/WebCoreStatistics.mm:
10350        (+[WebCoreStatistics javaScriptObjectsCount]):
10351        (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
10352        (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
10353        (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
10354        (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
10355        (+[WebCoreStatistics javaScriptObjectTypeCounts]):
10356        (+[WebCoreStatistics shouldPrintExceptions]):
10357        (+[WebCoreStatistics setShouldPrintExceptions:]):
10358        (+[WebCoreStatistics memoryStatistics]):
10359        (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
10360        * Plugins/Hosted/NetscapePluginHostProxy.mm:
10361        (identifierFromIdentifierRep):
10362        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
10363        (LocalObjectMap):
10364        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
10365        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
10366        (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
10367        (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
10368        (WebKit::NetscapePluginInstanceProxy::evaluate):
10369        (WebKit::NetscapePluginInstanceProxy::addValueToArray):
10370        * Plugins/Hosted/ProxyInstance.mm:
10371        (WebKit::ProxyRuntimeMethod::create):
10372        (WebKit::ProxyRuntimeMethod::createStructure):
10373        (WebKit::ProxyRuntimeMethod::finishCreation):
10374        (WebKit::ProxyInstance::getPropertyNames):
10375        * Plugins/Hosted/ProxyRuntimeObject.h:
10376        (WebKit::ProxyRuntimeObject::create):
10377        (WebKit::ProxyRuntimeObject::createStructure):
10378        * Plugins/WebNetscapePluginStream.mm:
10379        (WebNetscapePluginStream::wantsAllStreams):
10380        * Plugins/WebNetscapePluginView.mm:
10381        (-[WebNetscapePluginView sendEvent:isDrawRect:]):
10382        (-[WebNetscapePluginView privateBrowsingModeDidChange]):
10383        (-[WebNetscapePluginView setWindowIfNecessary]):
10384        (-[WebNetscapePluginView createPluginScriptableObject]):
10385        (-[WebNetscapePluginView getFormValue:]):
10386        (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
10387        (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
10388        (-[WebNetscapePluginView loadPluginRequest:]):
10389        (-[WebNetscapePluginView _printedPluginBitmap]):
10390        * Plugins/WebPluginController.mm:
10391        (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
10392        (-[WebPluginController stopOnePlugin:]):
10393        (-[WebPluginController destroyOnePlugin:]):
10394        (-[WebPluginController startAllPlugins]):
10395        (-[WebPluginController addPlugin:]):
10396        * WebKit.order:
10397        * WebView/WebScriptDebugDelegate.mm:
10398        (-[WebScriptCallFrame scopeChain]):
10399        (-[WebScriptCallFrame evaluateWebScript:]):
10400        * WebView/WebScriptDebugger.mm:
10401        (WebScriptDebugger::WebScriptDebugger):
10402
104032013-04-16  Beth Dakin  <bdakin@apple.com>
10404
10405        Re-name Page::layoutMilestones() to Page::requestedLayoutMilestones()
10406        https://bugs.webkit.org/show_bug.cgi?id=114713
10407
10408        Reviewed by Simon Fraser.
10409
10410        * WebView/WebView.mm:
10411        (-[WebView _layoutMilestones]):
10412
104132013-04-15  Sam Weinig  <sam@webkit.org>
10414
10415        Remove more #includes from Frame.h
10416        https://bugs.webkit.org/show_bug.cgi?id=114642
10417
10418        Reviewed by Anders Carlsson.
10419
10420        * WebView/WebFrame.mm:
10421        * WebView/WebHTMLRepresentation.mm:
10422        * WebView/WebView.mm:
10423
104242013-04-16  Alexey Proskuryakov  <ap@apple.com>
10425
10426        Remove unused AlternativeTextClient::dismissDictationAlternativeUI
10427        https://bugs.webkit.org/show_bug.cgi?id=114598
10428
10429        Reviewed by Ryosuke Niwa.
10430
10431        * WebCoreSupport/WebAlternativeTextClient.h:
10432        * WebCoreSupport/WebAlternativeTextClient.mm:
10433        * WebView/WebView.mm:
10434        * WebView/WebViewInternal.h:
10435
104362013-04-15  Ryosuke Niwa  <rniwa@webkit.org>
10437
10438        REGRESSION(r146025): WebKit applications can't apply underline or strike through
10439        https://bugs.webkit.org/show_bug.cgi?id=114662
10440
10441        Reviewed by Enrica Casucci.
10442
10443        Use -webkit- prefixes to apply underline. There should be no further compatibility issues
10444        since -khtml- was used only internally to pass the information down to WebCore.
10445
10446        Unfortunately, we can't test this code like any other font panel bug.
10447
10448        In the long run, we need to add some abstraction layer around font panel to make this testable
10449        or else we'll keep regressing this feature.
10450
10451        * WebView/WebHTMLView.mm:
10452        (-[WebHTMLView _styleFromFontAttributes:]):
10453        (-[WebHTMLView _styleForAttributeChange:]):
10454
104552013-04-15  Anders Carlsson  <andersca@apple.com>
10456
10457        plugins/get-url-beforeunload-destroys-plugin.html crashes in WebKit1
10458        https://bugs.webkit.org/show_bug.cgi?id=114653
10459        <rdar://problem/13659541>
10460
10461        Reviewed by Sam Weinig.
10462
10463        Protect the NetscapePluginInstanceProxy since it can otherwise go away.
10464
10465        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
10466        (WebKit::NetscapePluginInstanceProxy::performRequest):
10467
104682013-04-14  Sam Weinig  <sam@webkit.org>
10469
10470        Move Mac specific snapshotting code into its own file
10471        https://bugs.webkit.org/show_bug.cgi?id=114597
10472
10473        Reviewed by Andreas Kling.
10474
10475        * WebView/WebHTMLView.mm:
10476        (-[WebHTMLView _selectionDraggingImage]):
10477        (-[WebHTMLView selectionImageForcingBlackText:]):
10478
104792013-04-14  Andreas Kling  <akling@apple.com>
10480
10481        Move CSSOM classes to using MutableStylePropertySet over StylePropertySet.
10482        <http://webkit.org/b/114581>
10483
10484        Reviewed by Anders Carlsson.
10485
10486        * WebCoreSupport/WebEditorClient.mm:
10487        (WebEditorClient::shouldApplyStyle):
10488        * WebView/WebFrame.mm:
10489        (-[WebFrame _typingStyle]):
10490
104912013-04-10  Sam Weinig  <sam@webkit.org>
10492
10493        Make Frame's ScriptController an OwnPtr and remove the #include
10494        https://bugs.webkit.org/show_bug.cgi?id=114105
10495
10496        Reviewed by Dean Jackson.
10497
10498        * Plugins/Hosted/HostedNetscapePluginStream.mm:
10499        * Plugins/WebNetscapePluginStream.mm:
10500        * Plugins/WebPluginContainerCheck.mm:
10501        * WebCoreSupport/WebGeolocationClient.mm:
10502        * WebCoreSupport/WebInspectorClient.mm:
10503        * WebView/WebFrame.mm:
10504
105052013-04-13  Anders Carlsson  <andersca@apple.com>
10506
10507        Add form delegate method that's invoked right before sending a submit event to a form element
10508        https://bugs.webkit.org/show_bug.cgi?id=114575
10509
10510        Reviewed by Dan Bernstein.
10511
10512        * MigrateHeaders.make:
10513        Copy DOMHTMLFormElementInternal.h over to WebKit.
10514
10515        * WebCoreSupport/WebFrameLoaderClient.mm:
10516        (makeFormFieldValuesDictionary):
10517        New helper function that returns the values of a form in dictionary form.
10518
10519        (WebFrameLoaderClient::dispatchWillSendSubmitEvent):
10520        Call the right delegate method.
10521
10522        (WebFrameLoaderClient::dispatchWillSubmitForm):
10523        Use the helper function.
10524
10525        * WebView/WebDelegateImplementationCaching.h:
10526        * WebView/WebDelegateImplementationCaching.mm:
10527        (CallFormDelegate):
10528        Add another overload.
10529
10530        * WebView/WebFormDelegate.h:
10531        * WebView/WebFormDelegate.m:
10532        (-[WebFormDelegate willSendSubmitEventToForm:inFrame:withValues:]):
10533        Add a default implementation.
10534
105352013-04-10  Benjamin Poulain  <bpoulain@apple.com>
10536
10537        Mass remove all the empty directories
10538
10539        Rubberstamped by Ryosuke Niwa.
10540
10541        * ForwardingHeaders/wtf/unicode/icu: Removed.
10542
105432013-04-08  Anders Carlsson  <andersca@apple.com>
10544
10545        Remove unneeded headers from FrameLoader.h
10546        https://bugs.webkit.org/show_bug.cgi?id=114223
10547
10548        Reviewed by Geoffrey Garen.
10549
10550        Include HistoryController.h from WebCore.
10551
10552        * WebCoreSupport/WebFrameLoaderClient.mm:
10553        * WebView/WebView.mm:
10554
105552013-04-09  Geoffrey Garen  <ggaren@apple.com>
10556
10557        Removed bitrotted TimeoutChecker code
10558        https://bugs.webkit.org/show_bug.cgi?id=114336
10559
10560        Reviewed by Alexey Proskuryakov.
10561
10562        This mechanism hasn't worked for a while.
10563
10564        MarkL is working on a new version of this feature with a distinct
10565        implementation.
10566
10567        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
10568        (WebKit::NetscapePluginInstanceProxy::evaluate):
10569
105702013-04-08  Benjamin Poulain  <benjamin@webkit.org>
10571
10572        Remove HTML Notification
10573        https://bugs.webkit.org/show_bug.cgi?id=114231
10574
10575        Reviewed by Ryosuke Niwa.
10576
10577        * Configurations/FeatureDefines.xcconfig:
10578
105792013-04-05  Anders Carlsson  <andersca@apple.com>
10580
10581        Stop building Objective-C bindings for the SVG DOM
10582        https://bugs.webkit.org/show_bug.cgi?id=114076
10583
10584        Reviewed by Geoffrey Garen.
10585
10586        The DOM SVG Objective-C bindings have never been exposed as API, and not building them cuts WebCore build by 10%.
10587
10588        * Configurations/FeatureDefines.xcconfig:
10589        * MigrateHeaders.make:
10590
105912013-04-05  Timothy Hatcher  <timothy@apple.com>
10592
10593        Allow the Web Inspector to use WebSQL.
10594
10595        This fixes an exception on load in the Safari Web Inspector.
10596
10597        https://webkit.org/b/114040
10598        rdar://problem/13581422
10599
10600        Reviewed by Anders Carlsson.
10601
10602        * WebCoreSupport/WebInspectorClient.mm:
10603        (-[WebInspectorWindowController webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]): Added.
10604
106052013-04-02  Timothy Hatcher  <timothy@apple.com>
10606
10607        Provide a user default that can be used to disable docking of the Web Inspector.
10608
10609        The user default is "WebKit Web Inspector Setting - inspectorAttachDisabled".
10610
10611        https://webkit.org/b/113779
10612        rdar://problem/13446021
10613
10614        Reviewed by Joseph Pecoraro.
10615
10616        * WebCoreSupport/WebInspectorClient.h:
10617        (WebInspectorClient::inspectorAttachDisabled): Added.
10618        (WebInspectorClient::setInspectorAttachDisabled): Added.
10619
10620        * WebCoreSupport/WebInspectorClient.mm:
10621        (WebInspectorClient::didResizeMainFrame):
10622        (-[WebInspectorWindowController window]):
10623        (-[WebInspectorWindowController showWindow:]):
10624        Check inspectorAttachDisabled() in places where we attach or update the dock button.
10625
106262013-04-02  Alexey Proskuryakov  <ap@apple.com>
10627
10628        [Mac] Remove WKCreateNSURLConnectionDelegateProxy
10629        https://bugs.webkit.org/show_bug.cgi?id=113810
10630
10631        Reviewed by Anders Carlsson.
10632
10633        * WebCoreSupport/WebSystemInterface.mm:
10634        (InitWebCoreSystemInterface):
10635
106362013-04-02  Alexey Proskuryakov  <ap@apple.com>
10637
10638        <rdar://problem/13551119> [WK2] Crashes in NetworkProcess when canceling loads
10639        https://bugs.webkit.org/show_bug.cgi?id=113803
10640
10641        Reviewed by Darin Adler.
10642
10643        * WebCoreSupport/WebFrameLoaderClient.mm:
10644        (WebFrameLoaderClient::convertMainResourceLoadToDownload):
10645        Just pass nil instead of proxy.
10646
106472013-04-01  Ryosuke Niwa  <rniwa@webkit.org>
10648
10649        WebKit/mac shouldn't have code for Mac 10.5 and earlier
10650        https://bugs.webkit.org/show_bug.cgi?id=113746
10651
10652        Reviewed by Darin Adler.
10653
10654        Deleted the code for 10.5 and removed if-defs for 10.6.
10655
10656        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
10657        (-[WebHostedNetscapePluginView createPlugin]):
10658        * Plugins/WebBaseNetscapePluginView.mm:
10659        (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
10660        * Plugins/WebNetscapePluginView.mm:
10661        (-[WebNetscapePluginView createPlugin]):
10662        (-[WebNetscapePluginView getVariable:forURL:value:length:]):
10663        (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]):
10664        * WebCoreSupport/WebChromeClient.mm:
10665        (WebChromeClient::selectItemWritingDirectionIsNatural):
10666        (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection):
10667        * WebCoreSupport/WebEditorClient.mm:
10668        (core):
10669        (WebEditorClient::checkTextOfParagraph):
10670        (WebEditorClient::requestCheckingOfString):
10671        * WebView/WebDynamicScrollBarsView.mm:
10672        (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
10673        * WebView/WebFullScreenController.mm:
10674        (-[WebFullScreenController _updateMenuAndDockForFullScreen]):
10675        * WebView/WebHTMLView.mm:
10676        (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
10677        (-[WebHTMLView _frameOrBoundsChanged]):
10678        (+[WebHTMLView _insertablePasteboardTypes]):
10679        (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
10680        (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
10681        (writingDirectionKeyBindingsEnabled):
10682        (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
10683        (-[WebHTMLView attachRootLayer:]):
10684        * WebView/WebHTMLViewInternal.h:
10685        * WebView/WebPDFDocumentExtras.mm:
10686        * WebView/WebPreferences.mm:
10687        (+[WebPreferences initialize]):
10688        * WebView/WebResourceInternal.h:
10689        * WebView/WebScriptDebugDelegate.h:
10690        * WebView/WebView.mm:
10691        (-[WebView _commonInitializationWithFrameName:groupName:]):
10692        (-[WebView _preferencesChanged:]):
10693        (+[WebView initialize]):
10694        (clientNeedsWebViewInitThreadWorkaround):
10695        (-[WebView validateUserInterfaceItemWithoutDelegate:]):
10696        (-[WebView setGrammarCheckingEnabled:]):
10697        (-[WebView isAutomaticQuoteSubstitutionEnabled]):
10698        (-[WebView isAutomaticLinkDetectionEnabled]):
10699        (-[WebView isAutomaticDashSubstitutionEnabled]):
10700        (-[WebView isAutomaticTextReplacementEnabled]):
10701        (-[WebView isAutomaticSpellingCorrectionEnabled]):
10702        (-[WebView _searchWithSpotlightFromMenu:]):
10703        (WebInstallMemoryPressureHandler):
10704        * WebView/WebViewPrivate.h:
10705
107062013-04-01  Tim Horton  <timothy_horton@apple.com>
10707
10708        WebCache should do the normal initialization dance
10709        https://bugs.webkit.org/show_bug.cgi?id=113722
10710        <rdar://problem/13424530>
10711
10712        Reviewed by Anders Carlsson.
10713
10714        In case a WebKit1 client uses WebCache before creating a WebView (or any of the other
10715        initialization-ready classes), we should do the initialization work in WebCache as well.
10716
10717        * Misc/WebCache.mm:
10718        (+[WebCache initialize]):
10719
107202013-03-26  Timothy Hatcher  <timothy@apple.com>
10721
10722        Add support for dock-to-right of the Web Inspector in the Mac port.
10723
10724        Unfortunately this requires Safari changes, so it is disabled in the nightly builds.
10725
10726        https://webkit.org/b/113341
10727        rdar://problem/10368152
10728
10729        Reviewed by Joseph Pecoraro.
10730
10731        * Resources/Dock.pdf: Updated.
10732        * WebCoreSupport/WebInspectorClient.h:
10733        (WebInspectorFrontendClient):
10734        * WebCoreSupport/WebInspectorClient.mm:
10735        (WebInspectorFrontendClient::frontendLoaded):
10736        (WebInspectorFrontendClient::attachWindow):
10737        (WebInspectorFrontendClient::setAttachedWindowWidth):
10738        (-[WebInspectorWindowController attachWindow:]):
10739        (-[WebInspectorWindowController attach]):
10740        (-[WebInspectorWindowController detach]):
10741        * WebInspector/WebInspectorFrontend.mm:
10742        (-[WebInspectorFrontend attach]):
10743
107442013-03-26  Tim Horton  <timothy_horton@apple.com>
10745
10746        Unreviewed attempted cr-mac build fix.
10747
10748        * WebCoreSupport/WebSystemInterface.mm:
10749        (InitWebCoreSystemInterface):
10750
107512013-03-26  Hayato Ito  <hayato@chromium.org>
10752
10753        Allow ShadowContents in HitTests by default.
10754        https://bugs.webkit.org/show_bug.cgi?id=113171
10755
10756        Reviewed by Dimitri Glazkov.
10757
10758        * WebView/WebFrame.mm:
10759        (-[WebFrame elementAtPoint:]):
10760        * WebView/WebHTMLView.mm:
10761        (-[WebHTMLView elementAtPoint:allowShadowContent:]):
10762
107632013-03-26  Tim Horton  <timothy_horton@apple.com>
10764
10765        [ca] Tell CA to clean up unused resources if a given WebProcess won't be drawing
10766        https://bugs.webkit.org/show_bug.cgi?id=107539
10767        <rdar://problem/13032692>
10768
10769        Reviewed by Simon Fraser.
10770
10771        Update WebSystemInterface.
10772
10773        * WebCoreSupport/WebSystemInterface.mm:
10774        (InitWebCoreSystemInterface):
10775
107762013-03-26  Sergio Villar Senin  <svillar@igalia.com>
10777
10778        Implement overtype mode for editable content
10779        https://bugs.webkit.org/show_bug.cgi?id=112126
10780
10781        Reviewed by Ryosuke Niwa.
10782
10783        Added the OverWrite editing command to the WebCore editing
10784        commands lists.
10785
10786        * WebView/WebHTMLView.mm:
10787        * WebView/WebView.h:
10788        * WebView/WebView.mm:
10789
107902013-03-25  Kent Tamura  <tkent@chromium.org>
10791
10792        Rename ENABLE_INPUT_TYPE_DATETIME
10793        https://bugs.webkit.org/show_bug.cgi?id=113254
10794
10795        Reviewed by Kentaro Hara.
10796
10797        Rename ENABLE_INPUT_TYPE_DATETIME to ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE.
10798        Actually I'd like to remove the code, but we shouldn't remove it yet
10799        because we shipped products with it on some platforms.
10800
10801        * Configurations/FeatureDefines.xcconfig:
10802
108032013-03-21  Kiran Muppala  <cmuppala@apple.com>
10804
10805        Add runtime setting for hidden page DOM timer throttling and CSS animation suspension
10806        https://bugs.webkit.org/show_bug.cgi?id=112308
10807
10808        Reviewed by Gavin Barraclough.
10809
10810        Add private preference for enabling/disabling hidden page DOM timer
10811        throttling and CSS animation suspension.  The preference should be
10812        disabled by default to avoid compatibility issues.
10813
10814        * WebView/WebPreferenceKeysPrivate.h:
10815        * WebView/WebPreferences.mm:
10816        (+[WebPreferences initialize]):
10817        (-[WebPreferences hiddenPageDOMTimerThrottlingEnabled]):
10818        (-[WebPreferences setHiddenPageDOMTimerThrottlingEnabled:]):
10819        (-[WebPreferences hiddenPageCSSAnimationSuspensionEnabled]):
10820        (-[WebPreferences setHiddenPageCSSAnimationSuspensionEnabled:]):
10821        * WebView/WebPreferencesPrivate.h:
10822        * WebView/WebView.mm:
10823        (-[WebView _preferencesChanged:]):
10824
108252013-03-19  Ryosuke Niwa  <rniwa@webkit.org>
10826
10827        Another Mac build fix attempt after r146239.
10828
10829        * WebCoreSupport/WebFrameNetworkingContext.h:
10830        (WebFrameNetworkingContext):
10831
108322013-03-19  Ryosuke Niwa  <rniwa@webkit.org>
10833
10834        Mac build fix attempt after r146239.
10835
10836        * WebCoreSupport/WebFrameNetworkingContext.h:
10837
108382013-03-19  Sergey Ryazanov  <serya@chromium.org>
10839
10840        Web Inspector: split Console into two entities, a web-facing bound object and page console.
10841        https://bugs.webkit.org/show_bug.cgi?id=111578
10842
10843        Reviewed by Vsevolod Vlasov.
10844
10845        Otherwise, a lot of logging in WebCore needs to go through the DOMWindow which is unnecessary.
10846
10847        * Misc/WebCoreStatistics.mm:
10848        (+[WebCoreStatistics shouldPrintExceptions]):
10849        (+[WebCoreStatistics setShouldPrintExceptions:]):
10850
108512013-03-17  Adam Barth  <abarth@webkit.org>
10852
10853        Legacy CSS vendor prefixes should only work for Dashboard
10854        https://bugs.webkit.org/show_bug.cgi?id=111890
10855
10856        Reviewed by Eric Seidel.
10857
10858        Enable legacy CSS vendor prefixes when we've been asked to turn on
10859        Dashboard compatibility mode.
10860
10861        * WebView/WebView.mm:
10862        (-[WebView _setDashboardBehavior:to:]):
10863
108642013-03-16  Pratik Solanki  <psolanki@apple.com>
10865
10866        Disable High DPI Canvas on iOS
10867        https://bugs.webkit.org/show_bug.cgi?id=112511
10868
10869        Reviewed by Joseph Pecoraro.
10870
10871        * Configurations/FeatureDefines.xcconfig:
10872
108732013-03-15  Timothy Hatcher  <timothy@apple.com>
10874
10875        Disable suppressesIncrementalRendering for the Web Inspector.
10876
10877        This ends up causing the Inspector to show blank for a couple seconds before
10878        it does its first paint. During that time the bare window chrome is showing
10879        when the Inspector's background and other simple elements count be painting.
10880        This causes the Inspector to look like it is loading slower than reality.
10881
10882        https://bugs.webkit.org/show_bug.cgi?id=112300
10883        rdar://problem/13412219
10884 
10885        Reviewed by Geoff Garen.
10886
10887        * WebCoreSupport/WebInspectorClient.mm:
10888        (-[WebInspectorWindowController init]): Disable suppressesIncrementalRendering.
10889
108902013-03-15  Nate Chapin  <japhet@chromium.org>
10891
10892        Hide MainResourceLoader from the outside world
10893        https://bugs.webkit.org/show_bug.cgi?id=109971
10894
10895        Reviewed by Adam Barth.
10896
10897        * WebCoreSupport/WebFrameLoaderClient.h:
10898        (WebFrameLoaderClient):
10899        * WebCoreSupport/WebFrameLoaderClient.mm:
10900        (WebFrameLoaderClient::convertMainResourceLoadToDownload):
10901
109022013-03-15  Abhishek Arya  <inferno@chromium.org>
10903
10904        Replace static_casts with to* helper functions.
10905        https://bugs.webkit.org/show_bug.cgi?id=112401
10906
10907        Reviewed by Stephen Chenney.
10908
10909        to* helper functions are preferred over static_cast calls since they
10910        help to catch bad casts easily on the testing infrastructure.
10911
10912        * WebView/WebRenderNode.mm:
10913        (copyRenderNode):
10914        * WebView/WebView.mm:
10915        (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
10916
109172013-03-14  Manuel Rego Casasnovas  <rego@igalia.com>
10918
10919        Add selectTrailingWhitespaceEnabled setting to WebCore::Page
10920        https://bugs.webkit.org/show_bug.cgi?id=109404
10921
10922        Reviewed by Tony Chang.
10923
10924        Use new settings for smartInsertDeleteEnabled and
10925        selectTrailingWhitespaceEnabled.
10926
10927        * WebCoreSupport/WebEditorClient.mm:
10928        (WebEditorClient::smartInsertDeleteEnabled):
10929        (WebEditorClient::isSelectTrailingWhitespaceEnabled):
10930        * WebView/WebView.mm:
10931        (-[WebView _commonInitializationWithFrameName:groupName:]): Initialize
10932        settings from NSUserDefaults.
10933        (-[WebView setSelectTrailingWhitespaceEnabled:]):
10934        (-[WebView isSelectTrailingWhitespaceEnabled]):
10935        (-[WebView setSmartInsertDeleteEnabled:]):
10936        (-[WebView smartInsertDeleteEnabled]):
10937        * WebView/WebViewData.h:
10938        * WebView/WebViewData.mm:
10939        (-[WebViewPrivate init]):
10940
109412013-03-14  Abhishek Arya  <inferno@chromium.org>
10942
10943        Replace static_casts with to* helper functions.
10944        https://bugs.webkit.org/show_bug.cgi?id=112296
10945
10946        Reviewed by Kentaro Hara.
10947
10948        to* helper functions are preferred over static_cast calls since they
10949        help to catch bad casts easily on the testing infrastructure.
10950
10951        * WebCoreSupport/WebFrameLoaderClient.mm:
10952        (applyAppleDictionaryApplicationQuirkNonInlinePart):
10953        * WebView/WebHTMLRepresentation.mm:
10954        (searchForLabelsBeforeElement):
10955
109562013-03-14  Alice Liu  <alice.liu@apple.com>
10957
10958        Add to HistoryItem a way to know if its underlying CachedPage has expired.
10959        https://bugs.webkit.org/show_bug.cgi?id=110652
10960
10961        Reviewed by Brady Eidson.
10962
10963        * History/WebHistoryItem.mm:
10964        (-[WebHistoryItem _isInPageCache]): Added. Just calls and returns core imple's function. 
10965        (-[WebHistoryItem _hasCachedPageExpired]): Same thing. 
10966        * History/WebHistoryItemPrivate.h:
10967        * WebView/WebPreferences.mm:
10968        (-[WebPreferences _backForwardCacheExpirationInterval]): Address fixme, now that WebCore::Settings
10969        has getters and setters with default value.
10970        * WebView/WebView.mm:
10971        (-[WebView _preferencesChanged:]): call setBackForwardCacheExpirationInterval similar to other settings.
10972
109732013-03-13  Rik Cabanier  <cabanier@adobe.com>
10974
10975        create runtime flags for CSS Compositing
10976        https://bugs.webkit.org/show_bug.cgi?id=111818
10977
10978        Reviewed by Ryosuke Niwa.
10979
10980        Added a preference to enable CSS compositing.
10981
10982        * WebView/WebPreferenceKeysPrivate.h:
10983        * WebView/WebPreferences.mm:
10984        (+[WebPreferences initialize]):
10985        (-[WebPreferences cssCompositingEnabled]):
10986        (-[WebPreferences setCSSCompositingEnabled:]):
10987        * WebView/WebPreferencesPrivate.h:
10988        * WebView/WebView.mm:
10989        (-[WebView _preferencesChanged:]):
10990
109912013-03-13  Ryosuke Niwa  <rniwa@webkit.org>
10992
10993        Threaded HTML Parser is missing feature define flags in all but Chromium port's build files
10994        https://bugs.webkit.org/show_bug.cgi?id=112277
10995
10996        Reviewed by Adam Barth.
10997
10998        * Configurations/FeatureDefines.xcconfig:
10999
110002013-03-13  Pavel Feldman  <pfeldman@chromium.org>
11001
11002        Web Inspector: get rid of hiddenPanels filter
11003        https://bugs.webkit.org/show_bug.cgi?id=112252
11004
11005        Reviewed by Vsevolod Vlasov.
11006
11007        * WebCoreSupport/WebInspectorClient.h:
11008        (WebInspectorFrontendClient):
11009        * WebCoreSupport/WebInspectorClient.mm:
11010        * WebKit.order:
11011
110122013-03-12  Geoffrey Garen  <ggaren@apple.com>
11013
11014        Moved RunLoopTimer and SchedulePair to WTF
11015        https://bugs.webkit.org/show_bug.cgi?id=112171
11016
11017        Reviewed by Oliver Hunt.
11018
11019        This will allow us to use timers in lower level primitives without
11020        duplicating all the code.
11021
11022        * WebCoreSupport/WebFrameNetworkingContext.h:
11023        (WebFrameNetworkingContext):
11024
110252013-03-12  Abhishek Arya  <inferno@chromium.org>
11026
11027        Replace static_casts with to* functions.
11028        https://bugs.webkit.org/show_bug.cgi?id=112072
11029
11030        Reviewed by Philip Rogers.
11031
11032        to* functions are preferred over static_cast calls since they
11033        help to catch bad casts easily on the testing infrastructure.
11034
11035        * WebView/WebView.mm:
11036        (-[WebView _enterFullscreenForNode:WebCore::]):
11037
110382013-03-11  Sheriff Bot  <webkit.review.bot@gmail.com>
11039
11040        Unreviewed, rolling out r145462.
11041        http://trac.webkit.org/changeset/145462
11042        https://bugs.webkit.org/show_bug.cgi?id=112097
11043
11044        Compilation failure in PluginView.cpp (Requested by jamesr_ on
11045        #webkit).
11046
11047        * WebView/WebView.mm:
11048        (-[WebView _enterFullscreenForNode:WebCore::]):
11049
110502013-03-11  Abhishek Arya  <inferno@chromium.org>
11051
11052        Replace static_casts with to* functions.
11053        https://bugs.webkit.org/show_bug.cgi?id=112072
11054
11055        Reviewed by Philip Rogers.
11056
11057        to* functions are preferred over static_cast calls since they
11058        help to catch bad casts easily on the testing infrastructure.
11059
11060        * WebView/WebView.mm:
11061        (-[WebView _enterFullscreenForNode:WebCore::]):
11062
110632013-03-11  Jochen Eisinger  <jochen@chromium.org>
11064
11065        Rename DefinitelyProcessingUserGesture to DefinitelyProcessingNewUserGesture
11066        https://bugs.webkit.org/show_bug.cgi?id=111959
11067
11068        Reviewed by Alexey Proskuryakov.
11069
11070        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
11071        (WebKit::NetscapePluginInstanceProxy::evaluate):
11072        * Plugins/WebNetscapePluginView.mm:
11073        (-[WebNetscapePluginView sendEvent:isDrawRect:]):
11074
110752013-03-11  Abhishek Arya  <inferno@chromium.org>
11076
11077        Replace static_cast with to* helper functions.
11078        https://bugs.webkit.org/show_bug.cgi?id=112045
11079
11080        Reviewed by Eric Seidel.
11081
11082        * WebView/WebRenderLayer.mm:
11083        (+[WebRenderLayer nameForLayer:]):
11084
110852013-03-11  Jer Noble  <jer.noble@apple.com>
11086
11087        Unreviewed build fix.  Remove stray brace which crept into r145409.
11088
11089        * WebView/WebFullScreenController.mm:
11090        (-[WebFullScreenController performClose:]):
11091
110922013-01-30  Jer Noble  <jer.noble@apple.com>
11093
11094        Mac: Cmd-w should close full screen window.
11095        https://bugs.webkit.org/show_bug.cgi?id=108406
11096
11097        Reviewed by Darin Adler.
11098
11099        Allow the user to close the full screen window with Cmd-w by making the full screen window
11100        closable, and by intercepting performClose:.
11101
11102        * WebView/WebFullScreenController.mm:
11103        (-[WebFullScreenController init]): Create a closable full screen window.
11104        (-[WebFullScreenController performClose:]): When we receive a close request in full screen mode,
11105            animate out of full screen.
11106
111072013-03-07  Anders Carlsson  <andersca@apple.com>
11108
11109        Add didFocusTextField:inFrame to WebFormDelegate
11110        https://bugs.webkit.org/show_bug.cgi?id=111804
11111
11112        Reviewed by Dan Bernstein.
11113
11114        * WebCoreSupport/WebChromeClient.mm:
11115        (WebChromeClient::focusedNodeChanged):
11116        * WebView/WebFormDelegate.h:
11117        * WebView/WebFormDelegate.m:
11118        (-[WebFormDelegate didFocusTextField:inFrame:]):
11119
111202013-03-04  Jer Noble  <jer.noble@apple.com>
11121
11122        Default mouse cursor behavior should be auto-hide for full screen video with custom controls
11123        https://bugs.webkit.org/show_bug.cgi?id=107601
11124
11125        Reviewed by Beth Dakin.
11126
11127        Enable the CURSOR_VISIBILITY feature.
11128
11129        * Configurations/FeatureDefines.xcconfig:
11130
111312013-03-05  Geoffrey Garen  <ggaren@apple.com>
11132
11133        Removed some dead code in the page cache
11134        https://bugs.webkit.org/show_bug.cgi?id=111525
11135
11136        Reviewed by Alexey Proskuryakov.
11137
11138        Page cache autorelease doesn't exist anymore, so there's no need to keep
11139        around these olds hacks.
11140
11141        This fixes <rdar://problem/4886761> Fix bizarre WebWindowWatcher policy in WebHistoryItem.
11142
11143        * History/WebHistoryItem.mm:
11144        (+[WebHistoryItem _releaseAllPendingPageCaches]):
11145        * History/WebHistoryItemInternal.h:
11146        * Misc/WebCoreStatistics.mm:
11147        (+[WebCoreStatistics autoreleasedPageCount]):
11148        * WebView/WebView.mm:
11149        (-[WebView _commonInitializationWithFrameName:groupName:]):
11150
111512013-03-06  Dmitry Zvorygin  <zvorygin@chromium.org>
11152
11153        Introduce new message sources for logging.
11154        https://bugs.webkit.org/show_bug.cgi?id=110968
11155
11156        Reviewed by Pavel Feldman.
11157
11158        * WebCoreSupport/WebChromeClient.mm:
11159        * WebView/WebUIDelegatePrivate.h:
11160
111612013-03-05  Kent Tamura  <tkent@chromium.org>
11162
11163        Rename WebCore/editing/visible_units.* to VisibleUnits.*
11164        https://bugs.webkit.org/show_bug.cgi?id=111426
11165
11166        Reviewed by Alexey Proskuryakov.
11167
11168        * WebView/WebFrame.mm:
11169
111702013-03-05  James Robinson  <jamesr@chromium.org>
11171
11172        ContainerNode::setActive should not sleep for 100ms on platforms that do not implement synchronous repaint(true) semantics
11173        https://bugs.webkit.org/show_bug.cgi?id=87054
11174
11175        Reviewed by Darin Adler.
11176
11177        The Mac WebKit1 port supports immediate invalidations.
11178
11179        * WebCoreSupport/WebChromeClient.h:
11180        (WebChromeClient):
11181        * WebCoreSupport/WebChromeClient.mm:
11182        (WebChromeClient::supportsImmediateInvalidation):
11183
111842013-03-05  David Kilzer  <ddkilzer@apple.com>
11185
11186        BUILD FIX (r144698): Only enable SPEECH_SYNTHESIS for Mac
11187        <http://webkit.org/b/106742>
11188
11189        Fixes the following build failures:
11190
11191            Undefined symbols for architecture i386:
11192              "__ZTVN7WebCore25PlatformSpeechSynthesizerE", referenced from:
11193                  __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
11194              NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
11195              "__ZN7WebCore25PlatformSpeechSynthesizer19initializeVoiceListEv", referenced from:
11196                  __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
11197            ld: symbol(s) not found for architecture i386
11198
11199        * Configurations/FeatureDefines.xcconfig:
11200        - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
11201
112022013-03-04  David Kilzer  <ddkilzer@apple.com>
11203
11204        BUILD FIX (r144662): Import JSBase.h in WebFrameLoadDelegate.h
11205        <http://webkit.org/b/111269>
11206
11207        Fixes the following build failure:
11208
11209            In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11:
11210            In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29:
11211            Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:41:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef]
11212            #if JSC_OBJC_API_ENABLED
11213                ^
11214            Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:207:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef]
11215            #if JSC_OBJC_API_ENABLED
11216                ^
11217            2 errors generated.
11218
11219        * WebView/WebFrameLoadDelegate.h: Include JSBase.h.
11220
112212013-03-04  Chris Fleizach  <cfleizach@apple.com>
11222
11223        Support WebSpeech - Speech Synthesis
11224        https://bugs.webkit.org/show_bug.cgi?id=106742
11225
11226        Reviewed by Simon Fraser.
11227
11228        Enable speech synthesis for the Mac.
11229
11230        * Configurations/FeatureDefines.xcconfig:
11231
112322013-03-04  Mark Hahnenberg  <mhahnenberg@apple.com>
11233
11234        Remove contextInternalContext from JSContextInternal.h
11235        https://bugs.webkit.org/show_bug.cgi?id=111356
11236
11237        Reviewed by Geoffrey Garen.
11238
11239        We don't need it any more since we have globalContextRef in JSContext.
11240
11241        * WebView/WebScriptWorld.mm:
11242        (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
11243
112442013-03-04  Laszlo Gombos  <l.gombos@samsung.com>
11245
11246        JSC_OBJC_API_ENABLED should be removed from FeatureDefines.h
11247        https://bugs.webkit.org/show_bug.cgi?id=111269
11248
11249        Reviewed by Mark Hahnenberg.
11250
11251        Include JavaScriptCore/JSBase.h for the definition of JSC_OBJC_API_ENABLED.
11252
11253        * WebView/WebDelegateImplementationCaching.h:
11254
112552013-03-04  Kunihiko Sakamoto  <ksakamoto@chromium.org>
11256
11257        Add build flag for FontLoader
11258        https://bugs.webkit.org/show_bug.cgi?id=111289
11259
11260        Reviewed by Benjamin Poulain.
11261
11262        Add ENABLE_FONT_LOAD_EVENTS build flag (disabled by default).
11263
11264        * Configurations/FeatureDefines.xcconfig:
11265
112662013-03-03  Benjamin Poulain  <benjamin@webkit.org>
11267
11268        [Mac] Get rid of a useless method from DOMHTMLInputElement
11269        https://bugs.webkit.org/show_bug.cgi?id=111279
11270
11271        Reviewed by Sam Weinig.
11272
11273        * DOM/WebDOMOperations.mm:
11274        * DOM/WebDOMOperationsPrivate.h:
11275        setValueForUser: is already privately exposed by DOMHTMLInputElement,
11276        no need to have it twice.
11277
112782013-03-03  Adam Barth  <abarth@webkit.org>
11279
11280        Unreviewed attempted build fix. Adds back some includes removed in
11281        http://trac.webkit.org/changeset/144565.
11282
11283        * DOM/WebDOMOperations.mm:
11284        * Misc/WebNSPasteboardExtras.mm:
11285        * WebCoreSupport/WebFrameNetworkingContext.mm:
11286        * WebView/WebRenderLayer.mm:
11287        * WebView/WebRenderNode.mm:
11288
112892013-03-03  Adam Barth  <abarth@webkit.org>
11290
11291        Unreviewed rollout of http://trac.webkit.org/r144530
11292        As described in https://bugs.webkit.org/show_bug.cgi?id=111167 and
11293        https://bugs.webkit.org/show_bug.cgi?id=111035, this patch caused a
11294        large number of ASSERTs in chromium-win.
11295
11296        * DOM/WebDOMOperations.mm:
11297        * Misc/WebNSPasteboardExtras.mm:
11298        * WebCoreSupport/WebFrameNetworkingContext.mm:
11299        * WebView/WebRenderLayer.mm:
11300        * WebView/WebRenderNode.mm:
11301
113022013-02-18  Darin Adler  <darin@apple.com>
11303
11304        Cut down the number of source files that depend on Clipboard.h
11305        https://bugs.webkit.org/show_bug.cgi?id=110030
11306
11307        Reviewed by Ryosuke Niwa.
11308
11309        * WebView/WebPDFView.mm: Add include of Clipboard.h since we use it
11310        here and the world no longer includes it everywhere.
11311
113122013-03-02  Benjamin Poulain  <bpoulain@apple.com>
11313
11314        Move computedStyleIncludingVisitedInfo from TestRunner to Internals
11315        https://bugs.webkit.org/show_bug.cgi?id=109772
11316
11317        Reviewed by Andreas Kling.
11318
11319        * WebView/WebView.mm:
11320        * WebView/WebViewPrivate.h:
11321
113222013-03-02  David Kilzer  <ddkilzer@apple.com>
11323
11324        BUILD FIX (r143637): Predeclare JSContext as an Objective-C class
11325        <http://webkit.org/b/106059>
11326
11327        Fixes the following build failure:
11328
11329            In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11:
11330            In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29:
11331            Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:215:64: error: expected a type
11332            - (void)webView:(WebView *)webView didCreateJavaScriptContext:(JSContext *)context forFrame:(WebFrame *)frame;
11333                                                                           ^
11334            1 error generated.
11335
11336        * WebView/WebFrameLoadDelegate.h: Add @class JSContext
11337        declaration.
11338
113392013-02-28  Alexey Proskuryakov  <ap@apple.com>
11340
11341        Reduce amount of rebuilding when touching networking headers
11342        https://bugs.webkit.org/show_bug.cgi?id=111035
11343
11344        Reviewed by Eric Seidel.
11345
11346        Adding includes that are now necessary because WebCore headers don't have them
11347        any more.
11348
11349        * DOM/WebDOMOperations.mm:
11350        * Misc/WebNSPasteboardExtras.mm:
11351        * WebCoreSupport/WebFrameNetworkingContext.mm:
11352        * WebView/WebRenderLayer.mm:
11353        * WebView/WebRenderNode.mm:
11354
113552013-03-01  Jason Anderssen  <janderssen@gmail.com>
11356
11357        Move markerTextForListItem from TestRunner to Internals
11358        https://bugs.webkit.org/show_bug.cgi?id=110939
11359
11360        Reviewed by Benjamin Poulain.
11361
11362        * DOM/WebDOMOperations.mm:
11363        * DOM/WebDOMOperationsPrivate.h:
11364
113652013-02-28  Sam Weinig  <sam@webkit.org>
11366
11367        Add SPI for marking a WebView as doing things on behalf of another process
11368        https://bugs.webkit.org/show_bug.cgi?id=111125
11369
11370        Reviewed by Alexey Proskuryakov.
11371
11372        * WebCoreSupport/WebFrameNetworkingContext.h:
11373        (WebFrameNetworkingContext):
11374        * WebCoreSupport/WebFrameNetworkingContext.mm:
11375        (WebFrameNetworkingContext::sourceApplicationAuditData):
11376        * WebView/WebView.mm:
11377        (-[WebView _setSourceApplicationAuditData:]):
11378        (-[WebView _sourceApplicationAuditData]):
11379        * WebView/WebViewData.h:
11380        * WebView/WebViewData.mm:
11381        (-[WebViewPrivate dealloc]):
11382        * WebView/WebViewPrivate.h:
11383        Add SPI for setting a source application for a WebView.
11384
113852013-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
11386
11387        Unreviewed, rolling out r144422 and r144424.
11388        http://trac.webkit.org/changeset/144422
11389        http://trac.webkit.org/changeset/144424
11390        https://bugs.webkit.org/show_bug.cgi?id=111167
11391
11392        Caused over 20 tests to fail assertion on Chromium Win port as
11393        ASSERTION FAILED: m_platformRequestUpdated (Requested by
11394        toyoshim on #webkit).
11395
11396        * DOM/WebDOMOperations.mm:
11397        * Misc/WebNSPasteboardExtras.mm:
11398        * WebCoreSupport/WebFrameNetworkingContext.mm:
11399        * WebView/WebRenderLayer.mm:
11400        * WebView/WebRenderNode.mm:
11401
114022013-02-28  Alexey Proskuryakov  <ap@apple.com>
11403
11404        Reduce amount of rebuilding when touching networking headers
11405        https://bugs.webkit.org/show_bug.cgi?id=111035
11406
11407        Reviewed by Eric Seidel.
11408
11409        Adding includes that are now necessary because WebCore headers don't have them
11410        any more.
11411
11412        * DOM/WebDOMOperations.mm:
11413        * Misc/WebNSPasteboardExtras.mm:
11414        * WebCoreSupport/WebFrameNetworkingContext.mm:
11415        * WebView/WebRenderLayer.mm:
11416        * WebView/WebRenderNode.mm:
11417
114182013-02-27  John Bauman  <jbauman@chromium.org>
11419
11420        Plugin in iframe may not display
11421        https://bugs.webkit.org/show_bug.cgi?id=109879
11422
11423        Reviewed by Simon Fraser.
11424
11425        Ensure NetscapePluginWidget informs the plugin view of the cliprect change directly.
11426
11427        * Plugins/WebBaseNetscapePluginView.h:
11428        * WebCoreSupport/WebFrameLoaderClient.mm:
11429        (NetscapePluginWidget::clipRectChanged):
11430
114312013-02-26  Alexey Proskuryakov  <ap@apple.com>
11432
11433        Don't add a body to platform request until necessary
11434        https://bugs.webkit.org/show_bug.cgi?id=110900
11435
11436        Reviewed by Brady Eidson.
11437
11438        WebKit1 behavior is unchanged, body is added on every conversion.
11439
11440        * WebCoreSupport/WebFrameLoaderClient.mm:
11441        (WebFrameLoaderClient::convertMainResourceLoadToDownload):
11442        (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
11443        (WebFrameLoaderClient::assignIdentifierToInitialRequest):
11444        (WebFrameLoaderClient::dispatchWillSendRequest):
11445        (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
11446        (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
11447        (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
11448        (WebFrameLoaderClient::updateGlobalHistory):
11449        (WebFrameLoaderClient::canHandleRequest):
11450        * WebView/WebDataSource.mm:
11451        (-[WebDataSource initialRequest]):
11452        (-[WebDataSource request]):
11453        * WebView/WebFrame.mm:
11454        (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
11455
114562013-02-27  Glenn Adams  <glenn@skynav.com>
11457
11458        Add ENABLE_CSS3_TEXT_LINE_BREAK flag.
11459        https://bugs.webkit.org/show_bug.cgi?id=110944
11460
11461        Reviewed by Dean Jackson.
11462
11463        * Configurations/FeatureDefines.xcconfig:
11464
114652013-02-26  Jer Noble  <jer.noble@apple.com>
11466
11467        Unreviewed build fix; use correct macro for platform name in FeatureDefines.xcconfig.
11468
11469        * Configurations/FeatureDefines.xcconfig:
11470
114712013-02-26  Dmitry Zvorygin  <zvorygin@chromium.org>
11472
11473        Merged Tip and Debug log levels for web console.
11474        https://bugs.webkit.org/show_bug.cgi?id=109919
11475
11476        Reviewed by Pavel Feldman.
11477
11478        In every component either TIP or DEBUG level was used for reporting,
11479        but not both. This patch is prerequisite for Web Inspector console log filtering.
11480
11481        * WebCoreSupport/WebChromeClient.mm:
11482        (stringForMessageLevel):
11483        * WebView/WebUIDelegatePrivate.h:
11484
11485
114862013-02-21  Jeffrey Pfau  <jpfau@apple.com>
11487
11488        Optionally partition cache to prevent using cache for tracking
11489        https://bugs.webkit.org/show_bug.cgi?id=110269
11490
11491        Reviewed by Maciej Stachowiak.
11492
11493        Update WKSI bindings and add feature defines.
11494
11495        * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
11496        * WebCoreSupport/WebSystemInterface.mm:
11497        (InitWebCoreSystemInterface):
11498
114992013-02-25  Jer Noble  <jer.noble@apple.com>
11500
11501        Normalize ENABLE_ENCRYPTED_MEDIA definitions across all FeatureDefines files.
11502        https://bugs.webkit.org/show_bug.cgi?id=110806
11503
11504        Reviewed by Alexey Proskuryakov.
11505    
11506        Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
11507
11508        * Configurations/FeatureDefines.xcconfig:
11509
115102013-02-25  Andreas Kling  <akling@apple.com>
11511
11512        Reduce amount of code that includes StylePropertySet.h
11513        <http://webkit.org/b/101149>
11514
11515        Reviewed by Antti Koivisto.
11516
11517        * WebCoreSupport/WebEditorClient.mm:
11518        * WebView/WebFrame.mm:
11519        * WebView/WebView.mm:
11520
115212013-02-24  Andreas Kling  <akling@apple.com>
11522
11523        Reduce include graph of JSDOMBinding.h
11524        <http://webkit.org/b/110709>
11525
11526        Reviewed by Antti Koivisto.
11527
11528        * WebView/WebHTMLView.mm:
11529
115302013-02-21  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
11531
11532        Allow to retrieve the request data from abstract TextCheckingRequest to be accessible for WK2
11533        https://bugs.webkit.org/show_bug.cgi?id=110208
11534
11535        Reviewed by Hajime Morrita.
11536
11537        * WebCoreSupport/WebEditorClient.mm:
11538        (WebEditorClient::didCheckSucceed):
11539        (WebEditorClient::requestCheckingOfString):
11540        Extract the request data as it is the member of 'TextCheckingRequest'.
11541
115422013-02-19  Mark Hahnenberg  <mhahnenberg@apple.com>
11543
11544        Objective-C API: Need a way to use the Objective-C JavaScript API with WebKit
11545        https://bugs.webkit.org/show_bug.cgi?id=106059
11546
11547        Reviewed by Geoffrey Garen.
11548
11549        Addition of appropriate delegate callbacks and support to the WebKit API.
11550
11551        * WebCoreSupport/WebFrameLoaderClient.mm:
11552        * WebView/WebDelegateImplementationCaching.h:
11553        (WebFrameLoadDelegateImplementationCache):
11554        * WebView/WebFrame.h:
11555        * WebView/WebFrame.mm:
11556        (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
11557        (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
11558        (-[WebFrame _javaScriptContextForScriptWorld:]):
11559        (-[WebFrame javaScriptContext]):
11560        * WebView/WebFrameLoadDelegate.h:
11561        * WebView/WebFramePrivate.h:
11562        * WebView/WebScriptDebugDelegate.mm:
11563        (-[WebScriptCallFrame _convertValueToObjcValue:JSC::]):
11564        (-[WebScriptCallFrame exception]):
11565        (-[WebScriptCallFrame evaluateWebScript:]):
11566        * WebView/WebScriptWorld.h:
11567        * WebView/WebScriptWorld.mm:
11568        (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
11569        * WebView/WebView.mm:
11570        (-[WebView _cacheFrameLoadDelegateImplementations]):
11571        (aeDescFromJSValue):
11572        (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
11573        (-[WebView _computedStyleIncludingVisitedInfo:forElement:]):
11574
115752013-02-20  Dirk Schulze  <krit@webkit.org>
11576
11577        Enable CANVAS_PATH flag
11578        https://bugs.webkit.org/show_bug.cgi?id=108508
11579
11580        Reviewed by Simon Fraser.
11581
11582        Enable CANVAS_PATH flag on trunk.
11583
11584        * Configurations/FeatureDefines.xcconfig:
11585
115862013-02-19  Tim Horton  <timothy_horton@apple.com>
11587
11588        Clarify isInWindow vs. isVisible path through to RenderLayerCompositor
11589        https://bugs.webkit.org/show_bug.cgi?id=110261
11590        <rdar://problem/13196122>
11591
11592        Reviewed by Simon Fraser.
11593
11594        * WebView/WebView.mm:
11595        (-[WebView viewWillMoveToWindow:]):
11596        (-[WebView viewDidMoveToWindow]):
11597        Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
11598
115992013-02-18  Anders Carlsson  <andersca@apple.com>
11600
11601        Add a DefaultHash for RefPtr<SecurityOrigin>
11602        https://bugs.webkit.org/show_bug.cgi?id=110170
11603
11604        Reviewed by Andreas Kling.
11605
11606        Remove all explicit uses of SecurityOriginHash.
11607
11608        * WebCoreSupport/WebApplicationCache.mm:
11609        (+[WebApplicationCache originsWithCache]):
11610
116112013-02-15  Eric Carlson  <eric.carlson@apple.com>
11612
11613        [Mac] remove wkCaptionAppearance from WebKitSystemInterface
11614        https://bugs.webkit.org/show_bug.cgi?id=109996
11615
11616        Reviewed by Simon Fraser.
11617
11618        * WebCoreSupport/WebSystemInterface.mm:
11619        (InitWebCoreSystemInterface):
11620
116212013-02-15  Sheriff Bot  <webkit.review.bot@gmail.com>
11622
11623        Unreviewed, rolling out r143088.
11624        http://trac.webkit.org/changeset/143088
11625        https://bugs.webkit.org/show_bug.cgi?id=110000
11626
11627        Breaks the build (Requested by dgorbik on #webkit).
11628
11629        * WebCoreSupport/WebSystemInterface.mm:
11630        (InitWebCoreSystemInterface):
11631
116322013-02-15  Eric Carlson  <eric.carlson@apple.com>
11633
11634        [Mac] remove wkCaptionAppearance from WebKitSystemInterface
11635        https://bugs.webkit.org/show_bug.cgi?id=109996
11636
11637        Reviewed by Simon Fraser.
11638
11639        * WebCoreSupport/WebSystemInterface.mm:
11640        (InitWebCoreSystemInterface):
11641
116422013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
11643
11644        Simplify hitTestResultAtPoint and nodesFromRect APIs
11645        https://bugs.webkit.org/show_bug.cgi?id=95720
11646
11647        Reviewed by Julien Chaffraix.
11648
11649        Update calls to new API.
11650
11651        * WebCoreSupport/WebFrameLoaderClient.mm:
11652        (WebFrameLoaderClient::actionDictionary):
11653        * WebView/WebFrame.mm:
11654        (-[WebFrame elementAtPoint:]):
11655        * WebView/WebHTMLView.mm:
11656        (-[WebHTMLView elementAtPoint:allowShadowContent:]):
11657
116582013-02-14  David Kilzer  <ddkilzer@apple.com>
11659
11660        [Mac] Clean up WARNING_CFLAGS
11661        <http://webkit.org/b/109747>
11662        <rdar://problem/13208373>
11663
11664        Reviewed by Mark Rowe.
11665
11666        * Configurations/Base.xcconfig: Use
11667        GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
11668        -Wshorten-64-to-32 rather than WARNING_CFLAGS.
11669
116702013-02-13  Zan Dobersek  <zdobersek@igalia.com>
11671
11672        The 'global isinf/isnan' compiler quirk required when using clang with libstdc++
11673        https://bugs.webkit.org/show_bug.cgi?id=109325
11674
11675        Reviewed by Anders Carlsson.
11676
11677        Prefix calls to the isinf and isnan methods with std::, declaring we want to use the
11678        two methods as they're provided by the C++ standard library being used.
11679
11680        * tests/DecimalTest.cpp:
11681        (TEST_F):
11682
116832013-02-12  Joseph Pecoraro  <pecoraro@apple.com>
11684
11685        [iOS] Enable PAGE_VISIBILITY_API
11686        https://bugs.webkit.org/show_bug.cgi?id=109399
11687
11688        Reviewed by David Kilzer.
11689
11690        * Configurations/FeatureDefines.xcconfig:
11691
116922013-02-12  David Kilzer  <ddkilzer@apple.com>
11693
11694        BUILD FIX (r142576): WK1 build fails when ENABLE(DELETION_UI) is off
11695        <https://bugs.webkit.org/show_bug.cgi?id=109534>
11696
11697        Fixes the following build failure:
11698
11699            WebEditorClient.mm:243:23: error: out-of-line definition of 'shouldShowDeleteInterface' does not match any declaration in 'WebEditorClient'
11700            bool WebEditorClient::shouldShowDeleteInterface(HTMLElement* element)
11701                                  ^~~~~~~~~~~~~~~~~~~~~~~~~
11702
11703        * WebCoreSupport/WebEditorClient.mm:
11704        (WebEditorClient::shouldShowDeleteInterface): Protect with
11705        ENABLE(DELETION_UI) macro.
11706
117072013-02-11  Ryosuke Niwa  <rniwa@webkit.org>
11708
11709        Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
11710        https://bugs.webkit.org/show_bug.cgi?id=109534
11711
11712        Reviewed by Anders Carlsson.
11713
11714        * WebCoreSupport/WebEditorClient.h:
11715
117162013-02-11  Benjamin Poulain  <benjamin@webkit.org>
11717
11718        Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
11719        https://bugs.webkit.org/show_bug.cgi?id=109349
11720
11721        Reviewed by Sam Weinig.
11722
11723        * WebView/WebView.mm:
11724        * WebView/WebViewPrivate.h:
11725
117262013-02-10  Dan Bernstein  <mitz@apple.com>
11727
11728        Added *.pdf to EXCLUDED_SOURCE_FILE_NAMES_iphoneos.
11729
11730        Rubber-stamped by Anders Carlsson.
11731
11732        * Configurations/WebKit.xcconfig:
11733
117342013-02-10  Jae Hyun Park  <jae.park08@gmail.com>
11735
11736        Rename ENABLE(GLIB_SUPPORT) to USE(GLIB)
11737        https://bugs.webkit.org/show_bug.cgi?id=104266
11738
11739        Reviewed by Philippe Normand.
11740
11741        Using USE(GLIB) instead of ENABLE(GLIB_SUPPORT) is more consistent with
11742        the existing macro naming conventions.
11743
11744        From Platform.h
11745        USE() - use a particular third-party library or optional OS service
11746        ENABLE() - turn on a specific feature of WebKit
11747
11748        * WebView/WebView.mm:
11749        (-[WebView _commonInitializationWithFrameName:groupName:]):
11750        (-[WebView _close]):
11751        * WebView/WebViewData.h:
11752        * WebView/WebViewInternal.h:
11753
117542013-02-08  Benjamin Poulain  <bpoulain@apple.com>
11755
11756        Move workerThreadCount from TestRunner to WebCore Internals
11757        https://bugs.webkit.org/show_bug.cgi?id=109239
11758
11759        Reviewed by Darin Adler.
11760
11761        Get rid of WebWorkersPrivate, which was only needed for DRT.
11762
11763        * WebKit.exp:
11764        * Workers/WebWorkersPrivate.h: Removed.
11765        * Workers/WebWorkersPrivate.mm: Removed.
11766
117672013-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
11768
11769        Unreviewed, rolling out r142212.
11770        http://trac.webkit.org/changeset/142212
11771        https://bugs.webkit.org/show_bug.cgi?id=109255
11772
11773        Causes ASSERT(!m_installed) on launch (Requested by smfr on
11774        #webkit).
11775
11776        * WebView/WebView.mm:
11777        (-[WebView _commonInitializationWithFrameName:groupName:]):
11778        (WebInstallMemoryPressureHandler):
11779
117802013-02-06  Gavin Barraclough  <barraclough@apple.com>
11781
11782        PluginProcess should quit immediately if idle in response to low-memory notifications
11783        https://bugs.webkit.org/show_bug.cgi?id=109103
11784        <rdar://problem/12679827>
11785
11786        Reviewed by Darin Adler.
11787
11788        * WebView/WebView.mm:
11789        (-[WebView _commonInitializationWithFrameName:groupName:]):
11790            - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
11791        (WebInstallMemoryPressureHandler):
11792            - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
11793
117942013-02-07  Benjamin Poulain  <bpoulain@apple.com>
11795
11796        Move pauseAnimation/pauseTransition from TestRunner to Internals
11797        https://bugs.webkit.org/show_bug.cgi?id=109107
11798
11799        Reviewed by Anders Carlsson.
11800
11801        * WebView/WebFrame.mm:
11802        * WebView/WebFramePrivate.h:
11803
118042013-02-06  Mike West  <mkwst@chromium.org>
11805
11806        Add an ENABLE_NOSNIFF feature flag.
11807        https://bugs.webkit.org/show_bug.cgi?id=109029
11808
11809        Reviewed by Jochen Eisinger.
11810
11811        This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
11812        when processing script and other resource types.
11813
11814        * Configurations/FeatureDefines.xcconfig:
11815
118162013-02-04  Benjamin Poulain  <bpoulain@apple.com>
11817
11818        Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
11819        https://bugs.webkit.org/show_bug.cgi?id=108741
11820
11821        Reviewed by Tony Chang.
11822
11823        * WebView/WebFrame.mm:
11824        * WebView/WebFramePrivate.h:
11825
118262013-02-04  Enrica Casucci  <enrica@apple.com>
11827
11828        Add specific EditActions for Bold and Italic commands.
11829        https://bugs.webkit.org/show_bug.cgi?id=108842.
11830        <rdar://problem/13098252>
11831
11832        Reviewed by Ryosuke Niwa.
11833
11834        * WebCoreSupport/WebEditorClient.mm:
11835        (undoNameForEditAction):
11836
118372013-02-03  David Kilzer  <ddkilzer@apple.com>
11838
11839        Upstream ENABLE_PDFKIT_PLUGIN settting
11840        <http://webkit.org/b/108792>
11841
11842        Reviewed by Tim Horton.
11843
11844        * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
11845        on iOS since PDFKit is a Mac-only framework.
11846
118472013-02-02  David Kilzer  <ddkilzer@apple.com>
11848
11849        Upstream iOS FeatureDefines
11850        <http://webkit.org/b/108753>
11851
11852        Reviewed by Anders Carlsson.
11853
11854        * Configurations/FeatureDefines.xcconfig:
11855        - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
11856        - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
11857        - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
11858          PLATFORM_NAME variant to reduce future merge conflicts. 
11859
118602013-02-01  Alexis Menard  <alexis@webkit.org>
11861
11862        Enable unprefixed CSS transitions by default.
11863        https://bugs.webkit.org/show_bug.cgi?id=108216
11864
11865        Reviewed by Dean Jackson.
11866
11867        Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
11868        to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to 
11869        guard the unprefixing work for CSS Transforms and animations.
11870
11871        * Configurations/FeatureDefines.xcconfig:
11872
118732013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
11874
11875        Editor::m_compositionNode not updated on HTMLInputElement::setValue()
11876        https://bugs.webkit.org/show_bug.cgi?id=107737
11877
11878        Reviewed by Ryosuke Niwa.
11879
11880        * WebView/WebHTMLView.mm:
11881        (-[WebHTMLView _updateSelectionForInputManager]):
11882
118832013-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
11884
11885        Unreviewed, rolling out r141479.
11886        http://trac.webkit.org/changeset/141479
11887        https://bugs.webkit.org/show_bug.cgi?id=108564
11888
11889        breaks chromium test (Requested by morrita on #webkit).
11890
11891        * WebView/WebHTMLView.mm:
11892        (-[WebHTMLView _updateSelectionForInputManager]):
11893
118942013-01-31  Enrica Casucci  <enrica@apple.com>
11895
11896        Mac: Editor::baseWritingDirectionForSelectionStart should return WritingDirection instead of NSWritingDirection.
11897        https://bugs.webkit.org/show_bug.cgi?id=108519.
11898
11899        Reviewed by Sam Weinig.
11900
11901        There is no need to use AppKit types here.
11902        baseWritingDirectionForSelectionStart now returns WritingDirection and
11903        WebHTMLView toggleWritingDirection has been modified accordingly.
11904
11905        * WebView/WebHTMLView.mm:
11906        (-[WebHTMLView toggleBaseWritingDirection:]):
11907
119082013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
11909
11910        Editor::m_compositionNode not updated on HTMLInputElement::setValue()
11911        https://bugs.webkit.org/show_bug.cgi?id=107737
11912
11913        Reviewed by Ryosuke Niwa.
11914
11915        * WebView/WebHTMLView.mm:
11916        (-[WebHTMLView _updateSelectionForInputManager]):
11917
119182013-01-31  Joseph Pecoraro  <pecoraro@apple.com>
11919
11920        Disable ENABLE_FULLSCREEN_API on iOS
11921        https://bugs.webkit.org/show_bug.cgi?id=108250
11922
11923        Reviewed by Benjamin Poulain.
11924
11925        * Configurations/FeatureDefines.xcconfig:
11926
119272013-01-31  Enrica Casucci  <enrica@apple.com>
11928
11929        WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
11930        https://bugs.webkit.org/show_bug.cgi?id=108396.
11931        <rdar://problem/12920461>
11932
11933        Reviewed by Alexey Proskuryakov.
11934
11935        Adds stub implementation for WebKit of the new EditorClient methods.
11936
11937        * WebCoreSupport/WebEditorClient.h:
11938        * WebCoreSupport/WebEditorClient.mm:
11939        (WebEditorClient::willWriteSelectionToPasteboard):
11940        (WebEditorClient::getClientPasteboardDataForRange):
11941
119422013-01-31  Brady Eidson  <beidson@apple.com>
11943
11944        Lack of a log level string should not obliterate compiled in logging channel state.
11945        https://bugs.webkit.org/show_bug.cgi?id=108502
11946
11947        Reviewed by Alexey Proskuryakov and Sam Weinig.
11948
11949        * Misc/WebKitLogging.m: If there's no log level string, leave the channel state alone.
11950
119512013-01-29  Sheriff Bot  <webkit.review.bot@gmail.com>
11952
11953        Unreviewed, rolling out r140983.
11954        http://trac.webkit.org/changeset/140983
11955        https://bugs.webkit.org/show_bug.cgi?id=108277
11956
11957        Unfortunately, this API has one last client (Requested by
11958        abarth on #webkit).
11959
11960        * Configurations/FeatureDefines.xcconfig:
11961
119622012-11-28  Jer Noble  <jer.noble@apple.com>
11963
11964        Allow clients to ask for the WebView/WKView placeholder view when in full screen mode.
11965        https://bugs.webkit.org/show_bug.cgi?id=103558
11966        <rdar://problem/12763112>
11967
11968        Reviewed by Benjamin Poulain.
11969
11970        Clients may want to behave differently when their WebView/WKView has been swapped out by a placeholder
11971        view when in full screen mode.  Add a simple accessor for the existing placeholder view to
11972        WebFullScreenController and WebView.
11973
11974        * WebView/WebFullScreenController.h:
11975        * WebView/WebFullScreenController.mm:
11976        (-[WebFullScreenController webViewPlaceholder]): Added simple accessor.
11977        * WebView/WebView.mm:
11978        (-[WebView fullScreenPlaceholderView]): Added simple accessor.
11979
119802013-01-28  Pratik Solanki  <psolanki@apple.com>
11981
11982        PLATFORM(IOS) should come before __MAC_OS_X_VERSION_MIN_REQUIRED
11983        https://bugs.webkit.org/show_bug.cgi?id=108101
11984
11985        Reviewed by Benjamin Poulain.
11986
11987        Since iOS does not define __MAC_OS_X_VERSION_MIN_REQUIRED, any usage of
11988        __MAC_OS_X_VERSION_MIN_REQUIRED should be after a PLATFORM(IOS) check.
11989
11990        * WebCoreSupport/WebSystemInterface.mm:
11991        (InitWebCoreSystemInterface):
11992
119932013-01-28  Joseph Pecoraro  <pecoraro@apple.com>
11994
11995        [Mac] Update PageVisibilityState when WebView is hidden / visible
11996        https://bugs.webkit.org/show_bug.cgi?id=107509
11997
11998        Reviewed by Sam Weinig.
11999
12000        * WebView/WebView.mm:
12001        * WebView/WebViewPrivate.h:
12002        (-[WebView _commonInitializationWithFrameName:groupName:]):
12003        Set the initial visibility of the page.
12004
12005        (-[WebView addWindowObserversForWindow:]):
12006        (-[WebView removeWindowObservers]):
12007        (-[WebView _isViewVisible]):
12008        (-[WebView _updateVisibilityState]):
12009        (-[WebView viewDidMoveToWindow]):
12010        (-[WebView _windowVisibilityChanged:]):
12011        Update visibility state in the same ways WK2 does. This involves
12012        listening for some new NSWindow delegates.
12013
120142013-01-28  Joseph Pecoraro  <pecoraro@apple.com>
12015
12016        Improve PageVisibility API with enums
12017        https://bugs.webkit.org/show_bug.cgi?id=107364
12018
12019        Reviewed by Sam Weinig.
12020
12021        * WebView/WebView.mm:
12022        * WebView/WebViewPrivate.h:
12023        (core):
12024        (-[WebView _setVisibilityState:isInitialState:]):
12025        Switch the private API form int to a WebPageVisibilityState enum.
12026
120272013-01-28  Adam Barth  <abarth@webkit.org>
12028
12029        Remove webkitNotifications.createHTMLNotification
12030        https://bugs.webkit.org/show_bug.cgi?id=107598
12031
12032        Reviewed by Benjamin Poulain.
12033
12034        * Configurations/FeatureDefines.xcconfig:
12035
120362013-01-25  Andy Estes  <aestes@apple.com>
12037
12038        Wrap content filtering code in an object
12039        https://bugs.webkit.org/show_bug.cgi?id=107914
12040
12041        Reviewed by Alexey Proskuryakov.
12042
12043        * WebCoreSupport/WebSystemInterface.mm:
12044        (InitWebCoreSystemInterface): Updated to reflect changes in WKSI.
12045
120462013-01-24  Dan Bernstein  <mitz@apple.com>
12047
12048        WebNavigationData does not distinguish between an empty title and a missing title
12049        https://bugs.webkit.org/show_bug.cgi?id=107917
12050
12051        Reviewed by Andy Estes.
12052
12053        * WebCoreSupport/WebFrameLoaderClient.mm:
12054        (nilOrNSString): Added this helper function.
12055        (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with a nil
12056        title, rather than the empty string, if the document does not have a title.
12057
120582013-01-24  Mark Hahnenberg  <mhahnenberg@apple.com>
12059
12060        Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h
12061        https://bugs.webkit.org/show_bug.cgi?id=107327
12062
12063        Reviewed by Filip Pizlo.
12064
12065        We're renaming these two files, so we have to replace the names everywhere.
12066
12067        * DOM/WebDOMOperations.mm:
12068        * ForwardingHeaders/runtime/JSCJSValue.h: Copied from Source/WebKit/mac/ForwardingHeaders/runtime/JSValue.h.
12069        * ForwardingHeaders/runtime/JSValue.h: Removed.
12070        * WebView/WebFrame.mm:
12071        * WebView/WebView.mm:
12072
120732013-01-22  Anders Carlsson  <andersca@apple.com>
12074
12075        Use a platforom strategy for local storage
12076        https://bugs.webkit.org/show_bug.cgi?id=107600
12077
12078        Reviewed by Andreas Kling.
12079
12080        Update for new storage strategy.
12081
12082        * WebCoreSupport/WebPlatformStrategies.h:
12083        (WebPlatformStrategies):
12084        * WebCoreSupport/WebPlatformStrategies.mm:
12085        (WebPlatformStrategies::createStorageStrategy):
12086
120872013-01-21  Kentaro Hara  <haraken@chromium.org>
12088
12089        Implement UIEvent constructor
12090        https://bugs.webkit.org/show_bug.cgi?id=107430
12091
12092        Reviewed by Adam Barth.
12093
12094        Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
12095
12096        UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
12097        which is enabled on Safari and Chromium for now.
12098
12099        * Configurations/FeatureDefines.xcconfig:
12100
121012013-01-22  Joseph Pecoraro  <pecoraro@apple.com>
12102
12103        [Mac] Enable Page Visibility (PAGE_VISIBILITY_API)
12104        https://bugs.webkit.org/show_bug.cgi?id=107230
12105
12106        Reviewed by David Kilzer.
12107
12108        * Configurations/FeatureDefines.xcconfig:
12109
121102013-01-22  Tim Horton  <timothy_horton@apple.com>
12111
12112        PDFPlugin: Build PDFPlugin everywhere, enable at runtime
12113        https://bugs.webkit.org/show_bug.cgi?id=107117
12114
12115        Reviewed by Alexey Proskuryakov.
12116
12117        Since PDFLayerController SPI is all forward-declared, the plugin should build
12118        on all Mac platforms, and can be enabled at runtime.
12119
12120        * Configurations/FeatureDefines.xcconfig:
12121
121222013-01-21  Dirk Schulze  <dschulze@adobe.com>
12123
12124        Add build flag for Canvas's Path object (disabled by default)
12125        https://bugs.webkit.org/show_bug.cgi?id=107473
12126
12127        Reviewed by Dean Jackson.
12128
12129        * Configurations/FeatureDefines.xcconfig:
12130
121312013-01-17  Andy Estes  <aestes@apple.com>
12132
12133        Add a USE() macro for content filtering code
12134        https://bugs.webkit.org/show_bug.cgi?id=107098
12135
12136        Reviewed by Mark Rowe.
12137
12138        * WebCoreSupport/WebSystemInterface.mm:
12139        (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).
12140
121412013-01-19  Philip Rogers  <pdr@google.com>
12142
12143        Merge SVGStylable into SVGStyledElement
12144        https://bugs.webkit.org/show_bug.cgi?id=106877
12145
12146        SVG2 changes element inheritance so all SVGElements are stylable. As a first-step towards a
12147        cleaner class hierarchy, this patch moves SVGStylable into SVGStyledElement.
12148
12149        Reviewed by Dirk Schulze.
12150
12151        * MigrateHeaders.make:
12152
121532013-01-18  Seokju Kwon  <seokju.kwon@gmail.com>
12154
12155        Add explicit keyword to constructors in platform-specific InspectorClient
12156        https://bugs.webkit.org/show_bug.cgi?id=107255
12157
12158        Reviewed by Kentaro Hara.
12159
12160        Add explicit keyword to constructors that take one argument
12161        in platform-specific implementation of InspectorClient.
12162
12163        * WebCoreSupport/WebInspectorClient.h:
12164        (WebInspectorClient):
12165
121662013-01-15  Jer Noble  <jer.noble@apple.com>
12167
12168        Add a Setting to disable QTKit media engine.
12169        https://bugs.webkit.org/show_bug.cgi?id=106972
12170
12171        Reviewed by Eric Carlson.
12172
12173        Add WebKit API to set QTKit enabled setting from user defaults.
12174
12175        * WebView/WebPreferenceKeysPrivate.h:
12176        * WebView/WebPreferences.mm:
12177        (+[WebPreferences initialize]): Set WebCore settings based on user defaults.
12178        (-[WebPreferences setQTKitEnabled:]): Pass through to WebCore.
12179        (-[WebPreferences isQTKitEnabled]): Ditto.
12180        * WebView/WebPreferencesPrivate.h:
12181        * WebView/WebView.mm:
12182        (-[WebView _preferencesChanged:]): Synchronize WebKit/WebCore settings.
12183
121842013-01-15  Enrica Casucci  <enrica@apple.com>
12185
12186        Add a new set of WebKit2 APIs for text search and
12187        search results management.
12188        https://bugs.webkit.org/show_bug.cgi?id=106834.
12189        <rdar://problem/12597159>
12190
12191        Reviewed by Simon Fraser.
12192        
12193        Adding new API to perform text search in WebKit2 without using
12194        the stock UI. The new interface provides all the information
12195        necessary to write a custom UI for search.
12196
12197        Added new TextWebKitAPI test.
12198
12199        * WebView/WebHTMLView.mm:
12200        (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
12201        Modified to reflect the changes to Editor::countMatchesForText interface.
12202
122032013-01-10  Zan Dobersek  <zandobersek@gmail.com>
12204
12205        Remove the ENABLE_ANIMATION_API feature define occurences
12206        https://bugs.webkit.org/show_bug.cgi?id=106544
12207
12208        Reviewed by Simon Fraser.
12209
12210        The Animation API code was removed in r137243. The ENABLE_ANIMATION_API
12211        feature define handling still lingers in various build systems and configurations
12212        but is of no use, so it should be removed.
12213
12214        * Configurations/FeatureDefines.xcconfig:
12215
122162013-01-08  Mark Lam  <mark.lam@apple.com>
12217
12218        Removed the need for the ProposedDatabase mechanism.
12219        https://bugs.webkit.org/show_bug.cgi?id=106292.
12220
12221        Reviewed by Sam Weinig.
12222
12223        * WebCoreSupport/WebChromeClient.h:
12224        * WebCoreSupport/WebChromeClient.mm:
12225        (WebChromeClient::exceededDatabaseQuota):
12226
122272013-01-07  Dan Bernstein  <mitz@apple.com>
12228
12229        [mac] WebKit1 clients can’t tell when a frame has been removed from the hierarchy
12230        https://bugs.webkit.org/show_bug.cgi?id=106261
12231
12232        Reviewed by Simon Fraser.
12233
12234        Test: TestWebKitAPI/Tests/mac/WebViewDidRemoveFrameFromHierarchy.mm.
12235
12236        Added -[WebFrameLoadDelegate webView:didRemoveFrameFromHierarchy:].
12237
12238        * WebCoreSupport/WebFrameLoaderClient.mm:
12239        (WebFrameLoaderClient::detachedFromParent2): Added a call to the new frame load delegate
12240        method.
12241        * WebView/WebDelegateImplementationCaching.h:
12242        (WebFrameLoadDelegateImplementationCache): Added the new method to the cache.
12243        * WebView/WebFrameLoadDelegatePrivate.h: Declared the new delegate method.
12244        * WebView/WebView.mm:
12245        (-[WebView _cacheFrameLoadDelegateImplementations]): Added the new method to the cache.
12246
122472013-01-07  Mike West  <mkwst@chromium.org>
12248
12249        Make the IFRAME_SEAMLESS flag runtime-enabled.
12250        https://bugs.webkit.org/show_bug.cgi?id=106213
12251
12252        Reviewed by Ojan Vafai.
12253
12254        * WebView/WebPreferenceKeysPrivate.h:
12255        * WebView/WebPreferences.mm:
12256        (-[WebPreferences seamlessIFramesEnabled]):
12257        (-[WebPreferences setSeamlessIFramesEnabled:]):
12258        * WebView/WebPreferencesPrivate.h:
12259        * WebView/WebView.mm:
12260        (-[WebView _preferencesChanged:]):
12261            Add a seamless IFrame preference to WebPreferences, and use it to
12262            toggle the runtime state of the feature as appropriate.
12263
122642013-01-04  Adam Klein  <adamk@chromium.org>
12265
12266        Remove ENABLE_MUTATION_OBSERVERS #define
12267        https://bugs.webkit.org/show_bug.cgi?id=105459
12268
12269        Reviewed by Ryosuke Niwa.
12270
12271        * Configurations/FeatureDefines.xcconfig:
12272
122732013-01-01  Dan Bernstein  <mitz@apple.com>
12274
12275        <rdar://problem/12942239> Update copyright strings
12276
12277        Reviewed by Sam Weinig.
12278
12279        * Info.plist:
12280
122812012-12-29  Adam Roben  <aroben@webkit.org>
12282
12283        Web Inspector: Mac WK1 Inspector can't save/load timeline data
12284        https://bugs.webkit.org/show_bug.cgi?id=105547
12285
12286        Reviewed by Pavel Feldman.
12287
12288        * WebCoreSupport/WebInspectorClient.h: Declared new overrides and
12289        member variables necessary for save support.
12290
12291        * WebCoreSupport/WebInspectorClient.mm:
12292        (WebInspectorFrontendClient::save):
12293        (WebInspectorFrontendClient::append):
12294        Implemented these to make saving timeline data work. (It seems to me
12295        the InspectorFrontendClient API could be cleaned up a bit. I had to
12296        look at Chromium source code to determine that I needed to call back
12297        into the InspectorFrontendAPI JS object after saving/appending, and
12298        that I needed to keep a map of passed URLs -> chosen URLs.)
12299
12300        (-[WebInspectorWindowController window:willPositionSheet:usingRect:]):
12301        Tweaked the position of the sheet so that open/save sheets look a
12302        little bette.r
12303
12304        (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
12305        Implemented to make loading timeline data work.
12306
123072012-12-28  Mark Rowe  <mrowe@apple.com>
12308
12309        Move logic for extracting the OS X marketing version in to WebCore
12310        <http://webkit.org/b/105841> / <rdar://problem/10736041>
12311
12312        Reviewed by Dan Bernstein.
12313
12314        * WebCoreSupport/WebSystemInterface.mm:
12315        (InitWebCoreSystemInterface): Remove the code related to the WKSI symbol.
12316        * WebView/WebView.mm:
12317        (systemMarketingVersionForUserAgentString): Call the WebCore function instead of the WKSI function.
12318        (+[WebView _standardUserAgentWithApplicationName:]): Retain the result now that our helper doesn't
12319        do that for us.
12320
123212012-12-27  Sam Weinig  <sam@webkit.org>
12322
12323        Attempt to fix the tests.
12324
12325        * WebView/WebPreferences.mm:
12326        (+[WebPreferences initialize]):
12327
123282012-12-23  Alexey Proskuryakov  <ap@apple.com>
12329
12330        <rdar://problem/12808377> Network process should respect cookie accept policy
12331        https://bugs.webkit.org/show_bug.cgi?id=105684
12332
12333        Reviewed by Sam Weinig.
12334
12335        * WebCoreSupport/WebPlatformStrategies.h:
12336        * WebCoreSupport/WebPlatformStrategies.mm:
12337        CookiesStrategy no longer has notifyCookiesChanged().
12338
123392012-12-22  Alexey Proskuryakov  <ap@apple.com>
12340
12341        Add a separate class for networking related storage
12342        https://bugs.webkit.org/show_bug.cgi?id=105676
12343
12344        Reviewed by Sam Weinig.
12345
12346        * WebCoreSupport/WebFrameLoaderClient.mm:
12347        Updated for ResourceHandle include changes.
12348
12349        * WebCoreSupport/WebFrameNetworkingContext.h:
12350        * WebCoreSupport/WebFrameNetworkingContext.mm:
12351        This class is now simpler, with more session tracking being in WebCore now.
12352
12353        * WebCoreSupport/WebPlatformStrategies.h:
12354        * WebCoreSupport/WebPlatformStrategies.mm:
12355        (WebPlatformStrategies::cookiesForDOM):
12356        (WebPlatformStrategies::setCookiesFromDOM):
12357        (WebPlatformStrategies::cookiesEnabled):
12358        (WebPlatformStrategies::cookieRequestHeaderFieldValue):
12359        (WebPlatformStrategies::getRawCookies):
12360        (WebPlatformStrategies::deleteCookie):
12361        We no longer need a function for default cookie storage! Other cookie functions
12362        now take a session.
12363
12364        * WebView/WebPreferences.mm:
12365        (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Initialize WCSI before
12366        calling a WebCore that uses it.
12367        (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Use
12368        NetworkStorageSession for session tracking.
12369
12370        * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated for networking
12371        context now returning a class for session.
12372
123732012-12-20  Ilya Tikhonovsky  <loislo@chromium.org>
12374
12375        Unreviewed build fix for chromium mac after r138206.
12376
12377        * WebCoreSupport/WebSystemInterface.mm:
12378        (InitWebCoreSystemInterface):
12379
123802012-12-19  Alexey Proskuryakov  <ap@apple.com>
12381
12382        <rdar://problem/12890242> [WK2 NetworkProcess] Client doesn't receive SSL certificates
12383        https://bugs.webkit.org/show_bug.cgi?id=105467
12384
12385        Reviewed by Brady Eidson.
12386
12387        * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize
12388        a WKSI function we've been missing.
12389
123902012-12-19  Alexis Menard  <alexis@webkit.org>
12391
12392        Implement CSS parsing for CSS transitions unprefixed.
12393        https://bugs.webkit.org/show_bug.cgi?id=104804
12394
12395        Reviewed by Dean Jackson.
12396
12397        Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
12398        to cover the work of unprefixing Transforms, Animations and 
12399        Transitions. It will let the possibility of each ports to turn it off 
12400        in their release branches until we're confident that these CSS 
12401        properties are ready to be unprefixed.
12402
12403        * Configurations/FeatureDefines.xcconfig:
12404
124052012-12-18  Alexey Proskuryakov  <ap@apple.com>
12406
12407        Remove unnecessary functions from CookiesStrategy
12408        https://bugs.webkit.org/show_bug.cgi?id=105369
12409
12410        Reviewed by Brady Eidson.
12411
12412        * WebCoreSupport/WebPlatformStrategies.h:
12413        * WebCoreSupport/WebPlatformStrategies.mm:
12414
124152012-12-18  Alice Liu  <alice.liu@apple.com>
12416
12417        Add SPI to WebKit1 WebFrame for hit testing
12418        https://bugs.webkit.org/show_bug.cgi?id=105106
12419
12420        Reviewed by Dan Bernstein.
12421
12422        * WebView/WebFrame.mm:
12423        (-[WebFrame elementAtPoint:]): Added. Takes an NSPoint to feed to the WebCore::Frame for hit-testing.
12424        Creates a WebElementDictionary from that WebCore::HitTestResult, and returns the element dictionary. 
12425        * WebView/WebFramePrivate.h:
12426
124272012-12-18  Alice Liu  <alice.liu@apple.com>
12428
12429        Add SPI to WebKit1 WebFrame for node conversion to JSValueRef
12430        https://bugs.webkit.org/show_bug.cgi?id=105262
12431
12432        Reviewed by Anders Carlsson.
12433
12434        * WebView/WebFrame.mm:
12435        (-[WebFrame jsWrapper:forWorld:]): Added. Takes a DOMNode and WebScriptWorld and provides a JSValueRef
12436        for the WebCore::Node in that particular WebScriptWorld.
12437        * WebView/WebFramePrivate.h:
12438
124392012-12-18  Beth Dakin  <bdakin@apple.com>
12440
12441        https://bugs.webkit.org/show_bug.cgi?id=102579
12442        [mac] Enable scaled cursors
12443
12444        Reviewed by Dean Jackson.
12445
12446        * Configurations/FeatureDefines.xcconfig:
12447
124482012-12-16  Levi Weintraub  <leviw@chromium.org>
12449
12450        Push pixel snapping logic into TransformState
12451        https://bugs.webkit.org/show_bug.cgi?id=101779
12452
12453        Reviewed by Simon Fraser.
12454
12455        * WebView/WebFullScreenController.mm:
12456        (screenRectOfContents): Removed SnapOffsetForTransforms as it's no longer needed.
12457
124582012-12-15  Anders Carlsson  <andersca@apple.com>
12459
12460        Rename FrameLoaderClient::download to convertMainResourceLoadToDownload
12461        https://bugs.webkit.org/show_bug.cgi?id=105122
12462
12463        Reviewed by Andreas Kling.
12464
12465        Update for WebCore changes.
12466
12467        * WebCoreSupport/WebFrameLoaderClient.h:
12468        (WebFrameLoaderClient):
12469        * WebCoreSupport/WebFrameLoaderClient.mm:
12470        (WebFrameLoaderClient::convertMainResourceLoadToDownload):
12471
124722012-12-15  Mark Lam  <mark.lam@apple.com>
12473
12474        Re-landing patch for "Introducing the DatabaseStrategy and database servers".
12475        https://bugs.webkit.org/show_bug.cgi?id=104934.
12476
12477        Not reviewed.
12478
12479        Merged from r137767. Previously reviewed by Sam Weinig.
12480
12481        * WebCoreSupport/WebPlatformStrategies.h:
12482        (WebPlatformStrategies):
12483        * WebCoreSupport/WebPlatformStrategies.mm:
12484        (WebPlatformStrategies::createDatabaseStrategy):
12485
124862012-12-14  Mark Lam  <mark.lam@apple.com>
12487
12488        The WebView should initialize the platform strategies before initializing other sub-systems.
12489        https://bugs.webkit.org/show_bug.cgi?id=105083.
12490
12491        Reviewed by Alexey Proskuryakov.
12492
12493        * WebView/WebView.mm:
12494        (-[WebView _commonInitializationWithFrameName:groupName:]):
12495
124962012-12-14  Sheriff Bot  <webkit.review.bot@gmail.com>
12497
12498        Unreviewed, rolling out r137767.
12499        http://trac.webkit.org/changeset/137767
12500        https://bugs.webkit.org/show_bug.cgi?id=105062
12501
12502        Broke Mac builds. (Requested by mlam on #webkit).
12503
12504        * WebCoreSupport/WebPlatformStrategies.h:
12505        (WebPlatformStrategies):
12506        * WebCoreSupport/WebPlatformStrategies.mm:
12507
125082012-12-14  Mark Lam  <mark.lam@apple.com>
12509
12510        Introducing the DatabaseStrategy and database servers.
12511        https://bugs.webkit.org/show_bug.cgi?id=104934.
12512
12513        Reviewed by Sam Weinig.
12514
12515        The database server is currently a placeholder that does nothing.
12516
12517        * WebCoreSupport/WebPlatformStrategies.h:
12518        (WebPlatformStrategies):
12519        * WebCoreSupport/WebPlatformStrategies.mm:
12520        (WebPlatformStrategies::createDatabaseStrategy):
12521
125222012-12-13  Alexey Proskuryakov  <ap@apple.com>
12523
12524        <rdar://problem/12838354> Per-Tab WebProcess: DOM cookie access functions should respect private browsing
12525        https://bugs.webkit.org/show_bug.cgi?id=104691
12526
12527        Reviewed by Sam Weinig.
12528
12529        * WebCoreSupport/WebFrameNetworkingContext.h:
12530        * WebCoreSupport/WebFrameNetworkingContext.mm:
12531        (WebFrameNetworkingContext::inPrivateBrowsingMode):
12532        (WebFrameNetworkingContext::storageSession):
12533        Implemented inPrivateBrowsingMode().
12534
125352012-12-12  Mark Lam  <mark.lam@apple.com>
12536
12537        Encapsulate externally used webdatabase APIs in DatabaseManager.
12538        https://bugs.webkit.org/show_bug.cgi?id=104741.
12539
12540        Reviewed by Sam Weinig.
12541
12542        Use DatabaseManager instead of accessing DatabaseTracker, AbstractDatabase,
12543        and DatabaseContext directly. This is to prepare for upcoming webkit2
12544        refactoring.
12545
12546        * Storage/WebDatabaseManager.mm:
12547        (-[WebDatabaseManager origins]):
12548        (-[WebDatabaseManager databasesWithOrigin:]):
12549        (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
12550        (-[WebDatabaseManager deleteAllDatabases]):
12551        (-[WebDatabaseManager deleteOrigin:]):
12552        (-[WebDatabaseManager deleteDatabase:withOrigin:]):
12553        (WebKitInitializeDatabasesIfNecessary):
12554        * Storage/WebDatabaseManagerClient.h: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.h.
12555        (WebDatabaseManagerClient):
12556        * Storage/WebDatabaseManagerClient.mm: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.mm.
12557        (WebDatabaseManagerClient::sharedWebDatabaseManagerClient):
12558        (WebDatabaseManagerClient::WebDatabaseManagerClient):
12559        (WebDatabaseManagerClient::~WebDatabaseManagerClient):
12560        (DidModifyOriginData::dispatchToMainThread):
12561        (DidModifyOriginData::DidModifyOriginData):
12562        (DidModifyOriginData):
12563        (WebDatabaseManagerClient::dispatchDidModifyOrigin):
12564        (WebDatabaseManagerClient::dispatchDidModifyDatabase):
12565        * Storage/WebDatabaseQuotaManager.mm:
12566        (-[WebDatabaseQuotaManager usage]):
12567        (-[WebDatabaseQuotaManager quota]):
12568        (-[WebDatabaseQuotaManager setQuota:]):
12569        * Storage/WebDatabaseTrackerClient.h: Removed.
12570        * Storage/WebDatabaseTrackerClient.mm: Removed.
12571        * WebCoreSupport/WebSecurityOrigin.mm:
12572        (-[WebSecurityOrigin usage]):
12573        (-[WebSecurityOrigin quota]):
12574        (-[WebSecurityOrigin setQuota:]):
12575        * WebKit.order:
12576        * WebView/WebFrame.mm:
12577        (-[WebFrame _cacheabilityDictionary]):
12578        * WebView/WebView.mm:
12579        (-[WebView _preferencesChanged:]):
12580
125812012-12-12  Alexey Proskuryakov  <ap@apple.com>
12582
12583        Make LOG() work in WebProcess and NetworkProcess
12584        https://bugs.webkit.org/show_bug.cgi?id=104718
12585
12586        Reviewed by Tim Horton.
12587
12588        * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between
12589        WebCore and WebKit versions of this file.
12590
125912012-12-11  Mike West  <mkwst@chromium.org>
12592
12593        Web Inspector: ConsoleTypes should not expose MessageType - it should be private to inspector.
12594        https://bugs.webkit.org/show_bug.cgi?id=66371
12595
12596        Reviewed by Pavel Feldman.
12597
12598        Drops WebCore::MessageType from the addMessageToConsole method.
12599
12600        * WebCoreSupport/WebChromeClient.h:
12601        (WebChromeClient):
12602        * WebCoreSupport/WebChromeClient.mm:
12603        (WebChromeClient::addMessageToConsole):
12604
126052012-12-09  Antti Koivisto  <antti@apple.com>
12606
12607        Factor node traversal into standalone functions
12608        https://bugs.webkit.org/show_bug.cgi?id=104507
12609
12610        Reviewed by Eric Seidel.
12611    
12612        * WebView/WebHTMLRepresentation.mm:
12613        (searchForLabelsBeforeElement):
12614
126152012-12-10  Alexis Menard  <alexis@webkit.org>
12616
12617        [CSS3 Backgrounds and Borders] Remove CSS3_BACKGROUND feature flag.
12618        https://bugs.webkit.org/show_bug.cgi?id=104539
12619
12620        Reviewed by Antonio Gomes.
12621
12622        As discussed on webkit-dev it is not needed to keep this feature flag 
12623        as support for <position> type is a small feature that is already 
12624        implemented by three other UAs. It was useful while landing this 
12625        feature as partial bits were landed one after one.
12626
12627        * Configurations/FeatureDefines.xcconfig:
12628
126292012-12-06  Rick Byers  <rbyers@chromium.org>
12630
12631        CSS cursor property should support webkit-image-set
12632        https://bugs.webkit.org/show_bug.cgi?id=99493
12633
12634        Reviewed by Beth Dakin.
12635
12636        Add ENABLE_MOUSE_CURSOR_SCALE - disabled by default.
12637
12638        * Configurations/FeatureDefines.xcconfig:
12639
126402012-12-03  Yury Semikhatsky  <yurys@chromium.org>
12641
12642        Unreviewed. Fix Mac compilation after r136448.
12643
12644        * WebCoreSupport/WebChromeClient.mm:
12645        (stringForMessageType):
12646
126472012-12-03  Alexis Menard  <alexis@webkit.org>
12648
12649        [Mac] Enable CSS3 background-position offset by default.
12650        https://bugs.webkit.org/show_bug.cgi?id=103905
12651
12652        Reviewed by Simon Fraser.
12653
12654        Turn the flag on by default.
12655
12656        * Configurations/FeatureDefines.xcconfig:
12657
126582012-12-02  Yongjun Zhang  <yongjun_zhang@apple.com>
12659
12660        Need a method to close all idle localstorage databases immediately.
12661        https://bugs.webkit.org/show_bug.cgi?id=103469
12662
12663        Reviewed by David Kilzer.
12664
12665        Add a new method to WebStorageManager that we can call to close all
12666        idle local storage databases.
12667
12668        * Storage/WebStorageManager.mm:
12669        (+[WebStorageManager closeIdleLocalStorageDatabases]):
12670        * Storage/WebStorageManagerPrivate.h:
12671
126722012-11-30  Mihai Maerean  <mmaerean@adobe.com>
12673
12674        [CSSRegions] when WebKit uses V8, there should be a single variable to store if the CSS Regions feature is enabled
12675        https://bugs.webkit.org/show_bug.cgi?id=101192
12676
12677        Reviewed by Hajime Morita.
12678
12679        Removed the CSS Regions flag in Settings and switched to using the new flag I have added in RuntimeEnabledFeatures.
12680
12681        Tests: No new tests because there is no functional change.
12682
12683        * WebView/WebView.mm:
12684        (-[WebView _preferencesChanged:]):
12685
126862012-11-29  Rafael Weinstein  <rafaelw@chromium.org>
12687
12688        [HTMLTemplateElement] Add feature flag
12689        https://bugs.webkit.org/show_bug.cgi?id=103694
12690
12691        Reviewed by Adam Barth.
12692
12693        This flag will guard the implementation of the HTMLTemplateElement.
12694        http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html
12695
12696        * Configurations/FeatureDefines.xcconfig:
12697
126982012-11-29  Alexey Proskuryakov  <ap@apple.com>
12699
12700        [WK2] Forward cookie jar calls to NetworkProcess
12701        https://bugs.webkit.org/show_bug.cgi?id=103457
12702
12703        Reviewed by Darin Adler.
12704
12705        * WebCoreSupport/WebPlatformStrategies.h:
12706        (WebPlatformStrategies):
12707        * WebCoreSupport/WebPlatformStrategies.mm:
12708        (WebPlatformStrategies::cookiesForDOM):
12709        (WebPlatformStrategies::setCookiesFromDOM):
12710        (WebPlatformStrategies::cookiesEnabled):
12711        (WebPlatformStrategies::cookieRequestHeaderFieldValue):
12712        (WebPlatformStrategies::getRawCookies):
12713        (WebPlatformStrategies::deleteCookie):
12714        (WebPlatformStrategies::getHostnamesWithCookies):
12715        (WebPlatformStrategies::deleteCookiesForHostname):
12716        (WebPlatformStrategies::deleteAllCookies):
12717        (WebPlatformStrategies::getPluginInfo):
12718        (WebPlatformStrategies::bufferForType):
12719        WebKit1 strategy just uses PlatformCookieJar.
12720
127212012-11-28  Beth Dakin  <bdakin@apple.com>
12722
12723        https://bugs.webkit.org/show_bug.cgi?id=102970
12724        [WK1] REGRESSION (r129545): Main frame doesn't rubberband unless 
12725        WebFrameLoadDelegate implements -webView:didFirstLayoutInFrame:
12726
12727        Reviewed by Sam Weinig.
12728
12729        We should always register for DidFirstLayout in WK1 since we do work 
12730        at that time besides just calling the delegate function.
12731        * WebView/WebView.mm:
12732        (-[WebView _cacheFrameLoadDelegateImplementations]):
12733
127342012-11-27  Michael Saboff  <msaboff@apple.com>
12735
12736        TextIterator unnecessarily converts 8 bit strings to 16 bits
12737        https://bugs.webkit.org/show_bug.cgi?id=103295
12738
12739        Reviewed by Brent Fulgham.
12740
12741        Updated _stringForRange to use plainText() instead of removed plainTextToMallocAllocatedBuffer().
12742
12743        * WebView/WebFrame.mm:
12744        (-[WebFrame _stringForRange:]):
12745
127462012-11-27  James Simonsen  <simonjam@chromium.org>
12747
12748        Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
12749        https://bugs.webkit.org/show_bug.cgi?id=102151
12750
12751        Reviewed by Adam Barth.
12752
12753        * Plugins/WebPluginController.mm:
12754        * WebView/WebFrame.mm:
12755        (-[WebFrame loadRequest:]):
12756        (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
12757
127582012-11-27  Pratik Solanki  <psolanki@apple.com>
12759
12760        objc/objc-runtime.h does not exist on all PLATFORM(MAC)
12761        https://bugs.webkit.org/show_bug.cgi?id=101780
12762
12763        Reviewed by Brent Fulgham.
12764
12765        Clean up header includes so we don't include objc/objc-runtime.h.
12766
12767        * Carbon/HIWebView.mm:
12768        (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.
12769        * Plugins/WebNetscapePluginView.mm:
12770        * Plugins/WebPluginContainerCheck.mm:
12771        (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
12772        * Plugins/WebPluginController.mm:
12773        * WebCoreSupport/WebCachedFramePlatformData.h:
12774        * WebCoreSupport/WebDeviceOrientationClient.mm:
12775        * WebView/WebDelegateImplementationCaching.mm:
12776        * WebView/WebHTMLView.mm:
12777        * WebView/WebPDFDocumentExtras.mm:
12778        * WebView/WebPolicyDelegate.mm:
12779        (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
12780        * WebView/WebView.mm:
12781
127822012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
12783
12784        Unreviewed, rolling out r135786.
12785        http://trac.webkit.org/changeset/135786
12786        https://bugs.webkit.org/show_bug.cgi?id=103379
12787
12788        It made 3 plugin tests timeout on several platforms (Requested
12789        by Ossy on #webkit).
12790
12791        * Plugins/WebPluginController.mm:
12792        * WebView/WebFrame.mm:
12793        (-[WebFrame loadRequest:]):
12794        (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
12795
127962012-11-26  James Simonsen  <simonjam@chromium.org>
12797
12798        Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
12799        https://bugs.webkit.org/show_bug.cgi?id=102151
12800
12801        Reviewed by Adam Barth.
12802
12803        * Plugins/WebPluginController.mm:
12804        * WebView/WebFrame.mm:
12805        (-[WebFrame loadRequest:]):
12806        (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
12807
128082012-11-23  Alexis Menard  <alexis@webkit.org>
12809
12810        [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing.
12811        https://bugs.webkit.org/show_bug.cgi?id=102104
12812
12813        Reviewed by Julien Chaffraix.
12814
12815        Protect the new feature behind a feature flag.
12816
12817        * Configurations/FeatureDefines.xcconfig:
12818
128192012-11-21  Allan Sandfeld Jensen  <allan.jensen@digia.com>
12820
12821        Disambiguate innerNodeFramePoint and mainFramePoint
12822        https://bugs.webkit.org/show_bug.cgi?id=98139
12823
12824        Reviewed by Julien Chaffraix.
12825
12826        Switch to using HitTestResult::innerNodeFrame and HitTestResult::innerNodeFramePoint.
12827
12828        * WebCoreSupport/WebContextMenuClient.mm:
12829        (WebContextMenuClient::showContextMenu):
12830
128312012-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
12832
12833        Unreviewed, rolling out r135295.
12834        http://trac.webkit.org/changeset/135295
12835        https://bugs.webkit.org/show_bug.cgi?id=102834
12836
12837        This patch causes assertion to some layout tests on chromium
12838        (Requested by jianli on #webkit).
12839
12840        * Plugins/WebPluginController.mm:
12841        * WebView/WebFrame.mm:
12842        (-[WebFrame loadRequest:]):
12843        (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
12844
128452012-11-20  James Simonsen  <simonjam@chromium.org>
12846
12847        Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
12848        https://bugs.webkit.org/show_bug.cgi?id=102151
12849
12850        Reviewed by Adam Barth.
12851
12852        * Plugins/WebPluginController.mm:
12853        * WebView/WebFrame.mm:
12854        (-[WebFrame loadRequest:]):
12855        (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
12856
128572012-11-19  Kihong Kwon  <kihong.kwon@samsung.com>
12858
12859        Add PROXIMITY_EVENTS feature
12860        https://bugs.webkit.org/show_bug.cgi?id=102658
12861
12862        Reviewed by Kentaro Hara.
12863
12864        Add PROXIMITY_EVENTS feature to xcode project for WebKit.
12865
12866        * Configurations/FeatureDefines.xcconfig:
12867
128682012-11-16  Tony Chang  <tony@chromium.org>
12869
12870        Remove ENABLE_CSS_HIERARCHIES since it's no longer in use
12871        https://bugs.webkit.org/show_bug.cgi?id=102554
12872
12873        Reviewed by Andreas Kling.
12874
12875        As mentioned in https://bugs.webkit.org/show_bug.cgi?id=79939#c41 ,
12876        we're going to revist this feature once additional vendor support is
12877        achieved.
12878
12879        * Configurations/FeatureDefines.xcconfig:
12880
128812012-11-15  Alexey Proskuryakov  <ap@apple.com>
12882
12883        Private Browsing is a per-page setting that sets a global value
12884        https://bugs.webkit.org/show_bug.cgi?id=67870
12885
12886        Reviewed by Sam Weinig.
12887
12888        * WebCoreSupport/WebFrameNetworkingContext.h:
12889        * WebCoreSupport/WebFrameNetworkingContext.mm:
12890        Moved functions for managing global sessions from WebCore.
12891
12892        * WebCoreSupport/WebPlatformStrategies.h:
12893        * WebCoreSupport/WebPlatformStrategies.mm:
12894        (WebPlatformStrategies::defaultCookieStorage): Added. Uses WebFrameNetworkingContext
12895        to reach the storage.
12896
12897        * WebView/WebPreferences.mm:
12898        (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Ditto.
12899        (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Ditto.
12900
12901        * WebView/WebPreferencesPrivate.h: Added a comment explaining that two functions
12902        are not generic enough for use outside DRT (one of them had "testing" in name,
12903        but another did not).
12904
12905        * WebView/WebView.mm:
12906        (-[WebView _preferencesChanged:]): Create a global private browsing session when
12907        the first view with private browsing is created, delete it when any window with
12908        it disabled is created (since this comes from preferences, it applies to all
12909        views equally, even though we are dealing with a single one here).
12910        (-[WebView _cachedResponseForURL:]): Use main frame's networking context instead of
12911        a global one.
12912
129132012-11-13  Timothy Hatcher  <timothy@apple.com>
12914
12915        Adjust the Web Inspector window title frame if needed to prevent it from intersecting the dock button.
12916
12917        https://bugs.webkit.org/show_bug.cgi?id=102073
12918
12919        Reviewed by Joseph Pecoraro.
12920
12921        * WebCoreSupport/WebInspectorClient.mm:
12922        (-[WebInspectorWindow _customTitleFrame]): Added. Adjust the title frame.
12923
129242012-11-12  Simon Fraser  <simon.fraser@apple.com>
12925
12926        Build fix after r134346 and 134347.
12927        
12928        Use frameView.isFlipped, not frameView.flipped in the assertion.
12929
12930        * WebCoreSupport/WebInspectorClient.mm:
12931        (-[WebInspectorWindowController window]):
12932
129332012-11-12  Timothy Hatcher  <timothy@apple.com>
12934
12935        Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
12936
12937        https://bugs.webkit.org/show_bug.cgi?id=102025
12938
12939        Reviewed by Joseph Pecoraro.
12940
12941        * Resources/Dock.pdf: Added.
12942        * WebCoreSupport/WebInspectorClient.h:
12943        * WebCoreSupport/WebInspectorClient.mm:
12944        (-[WebInspectorWindow _cursorForResizeDirection:]): Added.
12945        (WebInspectorClient::didResizeMainFrame): Call attachAvailabilityChanged instead.
12946        (WebInspectorFrontendClient::attachAvailabilityChanged): Added.
12947        (-[WebInspectorWindowController window]): Create the dock button and add it.
12948        (-[WebInspectorWindowController attachWindow:]): Added.
12949        (-[WebInspectorWindowController attach]): Call setAttachedWindow.
12950        (-[WebInspectorWindowController detach]): Ditto.
12951        (-[WebInspectorWindowController setDockingUnavailable:]): Added. Update hidden state of the dock button.
12952
129532012-11-08  Timothy Hatcher  <timothy@apple.com>
12954
12955        Always use a textured window for the Web Inspector.
12956
12957        https://bugs.webkit.org/show_bug.cgi?id=101693
12958
12959        Reviewed by Joseph Pecoraro.
12960
12961        * WebCoreSupport/WebInspectorClient.mm:
12962        (-[WebInspectorWindowController window]): Removed the conditional for a textured window.
12963
129642012-11-08  Roger Fong  <roger_fong@apple.com>
12965
12966        Null check URL key entries into WebHistory hash table. 
12967        https://bugs.webkit.org/show_bug.cgi?id=101664
12968        <rdar://problem/12440852>
12969
12970        Reviewed by Brady Eidson.
12971        
12972        Sometimes the _entriesByURL hash table used to keep track of web history is erroneously passed in null key entries, which causes an exception to fire.
12973        This prevents the desired page navigation from taking effect. This is a workaround for the problem.
12974        Ideally we would figure out where the null values for the key are coming from but for now we'll just set it to "" to prevent the exception from being thrown
12975        so that navigation can continue as expected.
12976
12977        * History/WebHistory.mm:
12978        (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]):
12979
129802012-11-07  Andreas Kling  <akling@apple.com>
12981
12982        Remove build-webkit dependency on Java SDK for Apple Mac WebKit.
12983        <http://webkit.org/b/101492>
12984
12985        Reviewed by Anders Carlsson.
12986
12987        * Plugins/WebJavaPlugIn.h: Removed.
12988
129892012-11-06  Adam Barth  <abarth@webkit.org>
12990
12991        Unreviewed attempt to fix the chromium-mac build.
12992
12993        * WebCoreSupport/WebSystemInterface.mm:
12994        (InitWebCoreSystemInterface):
12995
129962012-11-06  Anders Carlsson  <andersca@apple.com>
12997
12998        Update Java related WKSI function names
12999        https://bugs.webkit.org/show_bug.cgi?id=101414
13000
13001        Reviewed by Sam Weinig.
13002
13003        * WebCoreSupport/WebChromeClient.mm:
13004        (WebChromeClient::unavailablePluginButtonClicked):
13005        * WebCoreSupport/WebFrameLoaderClient.mm:
13006        (isPlugInInactive):
13007
130082012-11-06  Alexey Proskuryakov  <ap@apple.com>
13009
13010        Clean up which storage cookie jar functions use
13011        https://bugs.webkit.org/show_bug.cgi?id=101395
13012
13013        Reviewed by Brady Eidson.
13014
13015        * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated for
13016        two new functions.
13017
130182012-11-06  Andrey Lushnikov  <lushnikov@google.com>
13019
13020        Added console.clear() method
13021
13022        Web Inspector: add console.clear()
13023        https://bugs.webkit.org/show_bug.cgi?id=101021
13024
13025        Reviewed by Vsevolod Vlasov.
13026
13027        * WebCoreSupport/WebChromeClient.mm:
13028        (stringForMessageType): Added ClearMessageType case to switch
13029
130302012-11-05  Alexey Proskuryakov  <ap@apple.com>
13031
13032        Get rid of setCookieStoragePrivateBrowsingEnabled.
13033        https://bugs.webkit.org/show_bug.cgi?id=101247
13034
13035        Reviewed by Brady Eidson.
13036
13037        * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): We no longer
13038        have this function.
13039
130402012-11-03  Alexey Proskuryakov  <ap@apple.com>
13041
13042        Get rid of USE(CFURLSTORAGESESSIONS)
13043        https://bugs.webkit.org/show_bug.cgi?id=101131
13044
13045        Reviewed by Sam Weinig.
13046
13047        * WebView/WebPreferences.mm:
13048        (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
13049        (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
13050        * WebView/WebView.mm:
13051        (-[WebView _cachedResponseForURL:]):
13052
130532012-11-02  Anders Carlsson  <andersca@apple.com>
13054
13055        Don't instantiate the Java plug-in if it's inactive
13056        https://bugs.webkit.org/show_bug.cgi?id=101102
13057        <rdar://problem/12595679>
13058
13059        Reviewed by Andreas Kling.
13060
13061        * WebCoreSupport/WebChromeClient.mm:
13062        (WebChromeClient::shouldUnavailablePluginMessageBeButton):
13063        The RenderEmbeddedObject::PluginInactive reason should always result in a button being shown.
13064
13065        (WebChromeClient::unavailablePluginButtonClicked):
13066        If the Java plug-in is inactive, call WKJLReportWebComponentsUsed() to reactivate the plug-in and
13067        then reload the page.
13068
13069        * WebCoreSupport/WebFrameLoaderClient.mm:
13070        (isOracleJavaPlugIn):
13071        (isPlugInInactive):
13072        Helper functions.
13073
13074        (WebFrameLoaderClient::createPlugin):
13075        If the plug-in is inactive, set the appropriate unavailability reason on the renderer.
13076
130772012-11-02  Simon Fraser  <simon.fraser@apple.com>
13078
13079        Enable SUBPIXEL_LAYOUT on Mac
13080        https://bugs.webkit.org/show_bug.cgi?id=101076
13081
13082        Reviewed by Dave Hyatt.
13083
13084        Define ENABLE_SUBPIXEL_LAYOUT and include it in FEATURE_DEFINES.
13085
13086        * Configurations/FeatureDefines.xcconfig:
13087
130882012-11-02  Adam Barth  <abarth@webkit.org>
13089
13090        ENABLE(UNDO_MANAGER) is disabled everywhere and is not under active development
13091        https://bugs.webkit.org/show_bug.cgi?id=100711
13092
13093        Reviewed by Eric Seidel.
13094
13095        * Configurations/FeatureDefines.xcconfig:
13096
130972012-11-01  Adam Roben  <aroben@webkit.org>
13098
13099        [WK1] Fixed-position elements jiggle up and down slightly during scrolling on a Retina display
13100        https://bugs.webkit.org/show_bug.cgi?id=100957
13101
13102        Reviewed by Simon Fraser.
13103
13104        WebCore doesn't yet support subpixel scrolling. WebKit2 forces
13105        scrolling to always be integral. Now WebKit1 forces this as well.
13106
13107        I'm not sure how to write a test for this.
13108
13109        * WebView/WebDynamicScrollBarsView.mm:
13110        (shouldRoundScrollOrigin): Returns YES if there are any position:fixed
13111        or position:sticky elements in the page.
13112        (-[WebDynamicScrollBarsView scrollClipView:toPoint:]): Round the
13113        scroll origin to the nearest pixel if needed.
13114
131152012-10-31  Anders Carlsson  <andersca@apple.com>
13116
13117        Fix build.
13118        <rdar://problem/12612207>.
13119
13120        Reviewed by Sam Weinig.
13121
13122        * Panels/WebAuthenticationPanel.m:
13123        (-[WebAuthenticationPanel loadNib]):
13124
131252012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
13126
13127        [Mac] Sync up FeatureDefine Configuration Files
13128        https://bugs.webkit.org/show_bug.cgi?id=100171
13129
13130        Reviewed by David Kilzer.
13131
13132        Follow up to better coordinate with iOS feature defines. Make:
13133
13134          - ENABLE_FILTERS always on
13135          - ENABLE_INPUT_* iphonesimulator values point to the iphoneos values
13136
13137        * Configurations/FeatureDefines.xcconfig:
13138
131392012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
13140
13141        [Mac] Sync up FeatureDefine Configuration Files
13142        https://bugs.webkit.org/show_bug.cgi?id=100171
13143
13144        Reviewed by David Kilzer.
13145
13146        Ensure an identical FeatureDefine files across all projects. Changes:
13147
13148          - ENABLE_CSS_BOX_DECORATION_BREAK should be in all
13149          - ENABLE_PDFKIT_PLUGIN should be in all
13150          - ENABLE_RESOLUTION_MEDIA_QUERY should be in all
13151          - ENABLE_ENCRYPTED_MEDIA should be in all
13152          - ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING with corrected value
13153          - Some alphabetical ordering cleanup
13154
13155        * Configurations/FeatureDefines.xcconfig:
13156
131572012-10-29  Anders Carlsson  <andersca@apple.com>
13158
13159        Build WebKit as C++11 on Mac
13160        https://bugs.webkit.org/show_bug.cgi?id=100720
13161
13162        Reviewed by Daniel Bates.
13163
13164        * Configurations/Base.xcconfig:
13165        Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x.
13166
13167        * History/WebBackForwardList.mm:
13168        (-[WebBackForwardList description]):
13169        * History/WebHistoryItem.mm:
13170        (-[WebHistoryItem description]):
13171        Add static_casts to prevent implicit type conversions in non-constant initializer lists.
13172
131732012-10-28  Mark Rowe  <mrowe@apple.com>
13174
13175        Simplify Xcode configuration settings that used to vary between OS versions.
13176
13177        Reviewed by Dan Bernstein.
13178
13179        * Configurations/Base.xcconfig:
13180        * Configurations/DebugRelease.xcconfig:
13181        * Configurations/WebKit.xcconfig:
13182
131832012-10-28  Mark Rowe  <mrowe@apple.com>
13184
13185        Remove references to unsupported OS and Xcode versions.
13186
13187        Reviewed by Anders Carlsson.
13188
13189        * Configurations/Base.xcconfig:
13190        * Configurations/CompilerVersion.xcconfig: Removed.
13191        * Configurations/DebugRelease.xcconfig:
13192        * Configurations/Version.xcconfig:
13193
131942012-10-29  Enrica Casucci  <enrica@apple.com>
13195
13196        Add ENABLE_USERSELECT_ALL feature flag.
13197        https://bugs.webkit.org/show_bug.cgi?id=100559
13198
13199        Reviewed by Eric Seidel.
13200
13201        * Configurations/FeatureDefines.xcconfig:
13202
132032012-10-27  Alexey Proskuryakov  <ap@apple.com>
13204
13205        All tests crash in WebKit1 mode
13206        https://bugs.webkit.org/show_bug.cgi?id=100602
13207
13208        Reviewed by Sam Weinig.
13209
13210        * WebView/WebView.mm: (+[WebView _setLoadResourcesSerially:]): Resource load
13211        scheduler is created via a strategy, so strategies need to be initialized before
13212        using it.
13213
132142012-10-27  Dan Bernstein  <mitz@apple.com>
13215
13216        REAL_PLATFORM_NAME build setting is no longer needed
13217        https://bugs.webkit.org/show_bug.cgi?id=100587
13218
13219        Reviewed by Mark Rowe.
13220
13221        Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
13222        to PLATFORM_NAME.
13223
13224        * Configurations/Base.xcconfig:
13225        * Configurations/CompilerVersion.xcconfig:
13226        * Configurations/DebugRelease.xcconfig:
13227        * Configurations/FeatureDefines.xcconfig:
13228        * Configurations/Version.xcconfig:
13229        * Configurations/WebKit.xcconfig:
13230
132312012-10-26  Thiago Marcos P. Santos  <thiago.santos@intel.com>
13232
13233        Add feature flags for CSS Device Adaptation
13234        https://bugs.webkit.org/show_bug.cgi?id=95960
13235
13236        Reviewed by Kenneth Rohde Christiansen.
13237
13238        * Configurations/FeatureDefines.xcconfig:
13239
132402012-10-25  Dominik Röttsches  <dominik.rottsches@intel.com>
13241
13242        Conditionalize XHR timeout support
13243        https://bugs.webkit.org/show_bug.cgi?id=100356
13244
13245        Reviewed by Adam Barth.
13246
13247        Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support.
13248        Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support.
13249
13250        * Configurations/FeatureDefines.xcconfig:
13251
132522012-10-24  Timothy Hatcher  <timothy@apple.com>
13253
13254        Fix a crash seen during the Inspector tests on the WebKit1 bots.
13255
13256        Reviewed by Filip Pizlo.
13257
13258        * WebCoreSupport/WebInspectorClient.mm:
13259        (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window
13260        is not the same when the Inspector is docked.
13261
132622012-10-24  Brady Eidson  <beidson@apple.com>
13263
13264        Add a strategy for loader customization.
13265        https://bugs.webkit.org/show_bug.cgi?id=100278
13266
13267        Reviewed by Alexey Proskuryakov.
13268
13269        * WebCoreSupport/WebPlatformStrategies.h:
13270        (WebPlatformStrategies):
13271        * WebCoreSupport/WebPlatformStrategies.mm:
13272        (WebPlatformStrategies::createLoaderStrategy):
13273
132742012-10-24  Timothy Hatcher  <timothy@apple.com>
13275
13276        Make the Inspector WKView/WebView become the first responder when bringToFront is called.
13277
13278        https://bugs.webkit.org/show_bug.cgi?id=100209
13279
13280        Reviewed by Joseph Pecoraro.
13281
13282        * WebCoreSupport/WebInspectorClient.mm:
13283        (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder.
13284
132852012-10-23  Alexey Proskuryakov  <ap@apple.com>
13286
13287        Add a strategy for shared workers
13288        https://bugs.webkit.org/show_bug.cgi?id=100165
13289
13290        Reviewed by Brady Eidson.
13291
13292        * WebCoreSupport/WebPlatformStrategies.h:
13293        * WebCoreSupport/WebPlatformStrategies.mm:
13294        (WebPlatformStrategies::createPasteboardStrategy):
13295        (WebPlatformStrategies::createSharedWorkerStrategy):
13296        (WebPlatformStrategies::createVisitedLinkStrategy):
13297
132982012-10-24  Eric Carlson  <eric.carlson@apple.com>
13299
13300        Allow ports to override text track rendering style
13301        https://bugs.webkit.org/show_bug.cgi?id=97800
13302        <rdar://problem/12044964>
13303
13304        Reviewed by Maciej Stachowiak.
13305
13306        * WebCoreSupport/WebSystemInterface.mm:
13307        (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
13308
133092012-10-23  Dan Bernstein  <mitz@apple.com>
13310
13311        WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default
13312        https://bugs.webkit.org/show_bug.cgi?id=100188
13313
13314        Reviewed by Sam Weinig.
13315
13316        * WebView/WebView.mm:
13317        (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added
13318        code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user
13319        default. Changed to refer to that default key by name.
13320
133212012-10-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13322
13323        Add support for resolution media query
13324        https://bugs.webkit.org/show_bug.cgi?id=99077
13325
13326        Reviewed by Antti Koivisto.
13327
13328        Add support for the RESOLUTION_MEDIA_QUERY feature flag.
13329
13330        * Configurations/FeatureDefines.xcconfig:
13331
133322012-10-21  Andreas Kling  <kling@webkit.org>
13333
13334        Remove Page::javaScriptURLsAreAllowed setting.
13335        <http://webkit.org/b/99944>
13336
13337        Reviewed by Anders Carlsson.
13338
13339        * WebKit.order:
13340        * WebView/WebView.mm:
13341        * WebView/WebViewPrivate.h:
13342
133432012-10-19  Dongwoo Joshua Im  <dw.im@samsung.com>
13344
13345        Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT
13346        https://bugs.webkit.org/show_bug.cgi?id=99804
13347
13348        Reviewed by Julien Chaffraix.
13349
13350        CSS3 text related properties will be implemented under this flag,
13351        including text decoration, text-align-last, and text-justify.
13352
13353        * Configurations/FeatureDefines.xcconfig:
13354
133552012-10-18  Pablo Flouret  <pablof@motorola.com>
13356
13357        Implement css3-conditional's @supports rule
13358        https://bugs.webkit.org/show_bug.cgi?id=86146
13359
13360        Reviewed by Antti Koivisto.
13361
13362        * Configurations/FeatureDefines.xcconfig:
13363            Add an ENABLE_CSS3_CONDITIONAL_RULES flag.
13364
133652012-10-17  Joseph Pecoraro  <pecoraro@apple.com>
13366
13367        [Mac] Uninitialized Members in WebDataSourcePrivate
13368        https://bugs.webkit.org/show_bug.cgi?id=99617
13369
13370        Reviewed by David Kilzer.
13371
13372        Initialize BOOL member variables.
13373
13374        * WebView/WebDataSource.mm:
13375        (WebDataSourcePrivate::WebDataSourcePrivate):
13376
133772012-10-17  Mark Rowe  <mrowe@apple.com>
13378
13379        Fix the build with a newer version of clang.
13380
13381        Reviewed by Dan Bernstein.
13382
13383        Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C.
13384        While it's technically valid to have empty components in a selector, it's rarely done and is not consistent
13385        with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and
13386        therefore generates a warning in newer versions of the compiler.
13387
13388        Fixes <rdar://problem/12503709>.
13389
13390        * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain.
13391        * Misc/WebCoreStatistics.mm: Ditto.
13392        (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
13393        (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
13394
133952012-10-16  Jian Li  <jianli@chromium.org>
13396
13397        Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION
13398        https://bugs.webkit.org/show_bug.cgi?id=98975
13399
13400        Reviewed by Adam Barth.
13401
13402        Renaming is needed to better match with the draggable region code.
13403
13404        * Configurations/FeatureDefines.xcconfig:
13405
134062012-10-15  Dan Bernstein  <mitz@apple.com>
13407
13408        WebKit/mac part of <rdar://problem/12470680> Font’s fast code path doesn’t support kerning and ligatures
13409        https://bugs.webkit.org/show_bug.cgi?id=99113
13410
13411        Reviewed by Tim Horton.
13412
13413        * WebCoreSupport/WebSystemInterface.mm:
13414        (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs.
13415
134162012-10-15  David Kilzer  <ddkilzer@apple.com>
13417
13418        Move framework and library linking into WebKit.xcconfig
13419        <http://webkit.org/b/99284>
13420
13421        Reviewed by Mark Rowe.
13422
13423        * Configurations/WebKit.xcconfig: Move frameworks and libraries
13424        link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
13425
134262012-10-14  Jon Lee  <jonlee@apple.com>
13427
13428        Allow notification origin permission request when no js callback is provided
13429        https://bugs.webkit.org/show_bug.cgi?id=63615
13430        <rdar://problem/11059590>
13431
13432        Reviewed by Sam Weinig.
13433
13434        Introduce a boolean to determine whether the request was using the legacy or standard API. This way,
13435        we do not fall through to calling the standard API's callback if the legacy API's callback is null.
13436
13437        * WebCoreSupport/WebNotificationClient.mm:
13438        (WebCore):
13439        (-[WebNotificationPolicyListener initWithVoidCallback:]):
13440        (-[WebNotificationPolicyListener allow]):
13441        (-[WebNotificationPolicyListener deny]):
13442
134432012-10-14  Sam Weinig  <sam@webkit.org>
13444
13445        Make UserScript and UserStyleSheet value objects that are copyable
13446        https://bugs.webkit.org/show_bug.cgi?id=99275
13447
13448        Reviewed by Tim Horton.
13449
13450        * WebView/WebView.mm:
13451        (-[WebView _injectMailQuirksScript]):
13452        (-[WebView _injectOutlookQuirksScript]):
13453        Update for new PageGroup function signatures.
13454
134552012-10-10  Brady Eidson  <beidson@apple.com>
13456
13457        Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
13458        https://bugs.webkit.org/show_bug.cgi?id=98976
13459
13460        Reviewed by Anders Carlsson.
13461
13462        * WebView/WebDataSource.mm:
13463        (-[WebDataSource data]):
13464
134652012-10-10  Jer Noble  <jer.noble@apple.com>
13466
13467        Disallow full screen mode keyboard access by default.
13468        https://bugs.webkit.org/show_bug.cgi?id=98971
13469        <rdar://problem/12474226>
13470
13471        Reviewed by Sam Weinig.
13472
13473        Only support full screen if keyboard access is not requested.
13474
13475        * WebView/WebView.mm:
13476        (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
13477
134782012-10-10  Jon Lee  <jonlee@apple.com>
13479
13480        [WK2] Activate plugins when user clicks on snapshot
13481        https://bugs.webkit.org/show_bug.cgi?id=98328
13482        <rdar://problem/12426681>
13483
13484        Reviewed by Brady Eidson.
13485
13486        * WebCoreSupport/WebFrameLoaderClient.h:
13487        * WebCoreSupport/WebFrameLoaderClient.mm:
13488        (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin().
13489
134902012-10-10  Brady Eidson  <beidson@apple.com>
13491
13492        Switch CachedResource over from SharedBuffer to a new ResourceBuffer
13493        https://bugs.webkit.org/show_bug.cgi?id=98541
13494
13495        Reviewed by Anders Carlsson.
13496
13497        * WebView/WebHTMLView.mm:
13498        (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
13499
135002012-10-10  Simon Fraser  <simon.fraser@apple.com>
13501
13502        Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
13503        https://bugs.webkit.org/show_bug.cgi?id=98839
13504
13505        Reviewed by Sam Weinig.
13506
13507        To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
13508        in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
13509        but store the computed rect in m_visibleRect.
13510        
13511        Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
13512        layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
13513
13514        * WebView/WebFrame.mm:
13515        (-[WebFrame _layerTreeAsText]):
13516
135172012-10-09  Jian Li  <jianli@chromium.org>
13518
13519        Update the CSS property used to support draggable regions.
13520        https://bugs.webkit.org/show_bug.cgi?id=97156
13521
13522        Reviewed by Adam Barth.
13523
13524        The CSS property to support draggable regions, guarded under
13525        WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
13526        confusion with DASHBOARD_SUPPORT feature.
13527
13528        Also update the code to use the new name annotatedRegions to work for
13529        both features.
13530
13531        * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
13532        * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
13533        * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
13534        (WebChromeClient::annotatedRegionsChanged):
13535        * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
13536        (-[WebView _dashboardRegions]):
13537
135382012-10-09  Sheriff Bot  <webkit.review.bot@gmail.com>
13539
13540        Unreviewed, rolling out r130811 and r130821.
13541        http://trac.webkit.org/changeset/130811
13542        http://trac.webkit.org/changeset/130821
13543        https://bugs.webkit.org/show_bug.cgi?id=98831
13544
13545        Broke date-suggestion-picker-appearance-with-scroll-bar.html
13546        (Requested by abarth|gardening on #webkit).
13547
13548        * WebView/WebFullScreenController.mm:
13549        (screenRectOfContents):
13550        * WebView/WebRenderNode.mm:
13551        (copyRenderNode):
13552
135532012-10-08  Kiran Muppala  <cmuppala@apple.com>
13554
13555        Throttle DOM timers on hidden pages.
13556        https://bugs.webkit.org/show_bug.cgi?id=98474
13557
13558        Reviewed by Maciej Stachowiak.
13559
13560        Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
13561        DumpRenderTree to modify the visibility state of a page.  The latter
13562        is needed to test throttling of timers on hidden pages through DumpRenderTree.
13563
13564        * Configurations/FeatureDefines.xcconfig:
13565        * WebView/WebView.mm:
13566        (-[WebView _setVisibilityState:isInitialState:]):
13567        * WebView/WebViewPrivate.h:
13568
135692012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
13570
13571        Rename first/second to key/value in HashMap iterators
13572        https://bugs.webkit.org/show_bug.cgi?id=82784
13573
13574        Reviewed by Eric Seidel.
13575
13576        * History/WebHistory.mm:
13577        (-[WebHistoryPrivate removeItemFromDateCaches:]):
13578        (-[WebHistoryPrivate orderedLastVisitedDays]):
13579        (WebHistoryWriter::WebHistoryWriter):
13580        * Misc/WebCoreStatistics.mm:
13581        (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
13582        (+[WebCoreStatistics javaScriptObjectTypeCounts]):
13583        * Plugins/Hosted/NetscapePluginHostManager.mm:
13584        (WebKit::NetscapePluginHostManager::hostForPlugin):
13585        (WebKit::NetscapePluginHostManager::pluginHostDied):
13586        (WebKit::NetscapePluginHostManager::didCreateWindow):
13587        * Plugins/Hosted/NetscapePluginHostProxy.mm:
13588        (WebKit::NetscapePluginHostProxy::pluginHostDied):
13589        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
13590        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
13591        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
13592        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
13593        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
13594        (WebKit::NetscapePluginInstanceProxy::destroy):
13595        (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
13596        (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
13597        * Plugins/Hosted/ProxyInstance.mm:
13598        (WebKit::ProxyInstance::methodNamed):
13599        (WebKit::ProxyInstance::fieldNamed):
13600        * Plugins/WebNetscapePluginView.mm:
13601        (-[WebNetscapePluginView stopTimers]):
13602        (-[WebNetscapePluginView startTimers]):
13603        * WebCoreSupport/WebNotificationClient.mm:
13604        (WebNotificationClient::show):
13605        (WebNotificationClient::clearNotifications):
13606        (WebNotificationClient::notificationObjectDestroyed):
13607        * WebView/WebHTMLView.mm:
13608        (commandNameForSelector):
13609
136102012-10-06  Dan Bernstein  <mitz@apple.com>
13611
13612        WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
13613        https://bugs.webkit.org/show_bug.cgi?id=98601
13614
13615        Reviewed by Darin Adler.
13616
13617        * WebView/WebView.mm:
13618        (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
13619        kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
13620        the value YES.
13621
136222012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
13623
13624        Unreviewed, rolling out r130556 and r130564.
13625        http://trac.webkit.org/changeset/130556
13626        http://trac.webkit.org/changeset/130564
13627        https://bugs.webkit.org/show_bug.cgi?id=98572
13628
13629        The patch wasn't reviewed by a reviewer and it is breaking
13630        Chromium Windows (Requested by jchaffraix on #webkit).
13631
13632        * WebCoreSupport/WebSystemInterface.mm:
13633        (InitWebCoreSystemInterface):
13634
136352012-10-05  Tim Horton  <timothy_horton@apple.com>
13636
13637        [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
13638        https://bugs.webkit.org/show_bug.cgi?id=98565
13639        <rdar://problem/12436468>
13640
13641        Reviewed by Simon Fraser.
13642
13643        Add wkCGContextDrawsWithCorrectShadowOffsets.
13644
13645        * WebCoreSupport/WebSystemInterface.mm:
13646        (InitWebCoreSystemInterface):
13647
136482012-10-04  Eric Carlson  <eric.carlson@apple.com>
13649
13650        Allow ports to override text track rendering style
13651        https://bugs.webkit.org/show_bug.cgi?id=97800
13652        <rdar://problem/12044964>
13653
13654        Reviewed by Silvia Pfeiffer.
13655
13656        Add WCSI support for new WKSI caption functions.
13657
13658        * WebCoreSupport/WebSystemInterface.mm:
13659        (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
13660
136612012-10-04  Jon Lee  <jonlee@apple.com>
13662
13663        Add a setting to enable plugin snapshotting
13664        https://bugs.webkit.org/show_bug.cgi?id=98319
13665        <rdar://problem/12426480>
13666
13667        Reviewed by Brady Eidson.
13668
13669        Expose plugInSnapshottingEnabled preference to WebKit clients.
13670
13671        * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
13672        * WebView/WebPreferences.mm:
13673        (+[WebPreferences initialize]): Setting is turned off by default.
13674        (-[WebPreferences plugInSnapshottingEnabled]):
13675        (-[WebPreferences setPlugInSnapshottingEnabled:]):
13676        * WebView/WebPreferencesPrivate.h:
13677        * WebView/WebView.mm:
13678        (-[WebView _preferencesChanged:]): Update settings based on preference.
13679
136802012-10-04  Rik Cabanier  <cabanier@adobe.com>
13681
13682        Turn Compositing on by default in WebKit build
13683        https://bugs.webkit.org/show_bug.cgi?id=98315
13684
13685        Reviewed by Simon Fraser.
13686
13687        enable -webkit-blend-mode on trunk.
13688
13689        * Configurations/FeatureDefines.xcconfig:
13690
136912012-10-04  Simon Fraser  <simon.fraser@apple.com>
13692
13693        Final part of "sync" to "flush" renaming
13694        https://bugs.webkit.org/show_bug.cgi?id=98430
13695
13696        Reviewed by Tim Horton.
13697
13698        Change method names on GraphicsLayer and GraphicsLayerClient that
13699        refer to "sync" to use the term "flush" instead, to be consistent
13700        with the rest of the code.
13701
13702        * WebView/WebView.mm:
13703
137042012-10-03  Benjamin Poulain  <bpoulain@apple.com>
13705
13706        [WK2] Support all attributes of GeolocationPosition
13707        https://bugs.webkit.org/show_bug.cgi?id=98212
13708
13709        Reviewed by Sam Weinig.
13710
13711        Add an internal constructor for the sake of testing.
13712        A similar API is used on iOS.
13713
13714        * WebView/WebGeolocationPosition.mm:
13715        (-[WebGeolocationPosition initWithGeolocationPosition:]):
13716
137172012-10-04  Simon Fraser  <simon.fraser@apple.com>
13718
13719        Standardize on "flush" terminology for compositing layer flushing/syncing
13720        https://bugs.webkit.org/show_bug.cgi?id=98321
13721
13722        Reviewed by Simon Fraser.
13723
13724        Rename compositing-related methods that refer to "syncing" to instead
13725        refer to "flushing".
13726
13727        * WebCoreSupport/WebChromeClient.h:
13728        * WebCoreSupport/WebChromeClient.mm:
13729        (WebChromeClient::scheduleCompositingLayerFlush):
13730        * WebView/WebView.mm:
13731        (-[WebView _flushCompositingChanges]):
13732        (LayerFlushController::flushLayers):
13733        (-[WebView _scheduleCompositingLayerFlush]):
13734        * WebView/WebViewInternal.h:
13735
13736== Rolled over to ChangeLog-2012-10-02 ==
13737