[Mac] No need for platform-specific ENABLE_BLOB values
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2012-03-23  Alexey Proskuryakov  <ap@apple.com>
2
3         [Mac] No need for platform-specific ENABLE_BLOB values
4         https://bugs.webkit.org/show_bug.cgi?id=82102
5
6         Reviewed by David Kilzer.
7
8         * Configurations/FeatureDefines.xcconfig:
9
10 2012-03-23  Dean Jackson  <dino@apple.com>
11
12         Disable CSS_SHADERS in Apple builds
13         https://bugs.webkit.org/show_bug.cgi?id=81996
14
15         Reviewed by Simon Fraser.
16
17         Remove ENABLE_CSS_SHADERS from FeatureDefines. It's now in Platform.h.
18
19         * Configurations/FeatureDefines.xcconfig:
20
21 2012-03-22  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
22
23         Convert hasGrammarMarker to use Internals interface
24         https://bugs.webkit.org/show_bug.cgi?id=82004
25
26         Reviewed by Ryosuke Niwa.
27
28         Remove hasGrammarMarker support, since it can support in the cross-port way
29         through the Internals interface.
30
31         * WebKit.order:
32         * WebView/WebFrame.mm:
33         * WebView/WebFramePrivate.h:
34
35 2012-03-22  Benjamin Poulain  <bpoulain@apple.com>
36
37         Build fix for WebHistory is busted after changing time zone
38         https://bugs.webkit.org/show_bug.cgi?id=81849
39
40         Unreviewed build fix.
41
42         When generating warning for undefined message signature, rebuildHistoryByDayIfNeeded
43         fail to compile due to addItemToDateCaches: being undefined.
44
45         Move the definition to the right place in the file to use the private method. 
46
47         * History/WebHistory.mm:
48         (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
49
50 2012-03-22  Benjamin Poulain  <bpoulain@apple.com>
51
52         WebHistory is busted after changing time zone
53         https://bugs.webkit.org/show_bug.cgi?id=81849
54
55         Reviewed by Brady Eidson.
56
57         The date used for choosing the bucket of a new entry is computed
58         with the system TimeZone.
59
60         When the Time Zone change, or the daylight saving time change, all the dates
61         in _entriesByDate are offset from the new entries.
62
63         This patch solves the issue by re-distributing the WebHistoryItems if the time zone
64         changes.
65         The clients of WebHistory are notified of this change through the regular Notifications.
66
67         * History/WebHistory.mm:
68         (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
69         (-[WebHistoryPrivate init]):
70         (-[WebHistory timeZoneChanged:]):
71         (-[WebHistory init]):
72         (-[WebHistory dealloc]):
73         (-[WebHistory finalize]):
74
75 2012-03-21  Tim Horton  <timothy_horton@apple.com>
76
77         Make use of CG rounded-rect primitives
78         https://bugs.webkit.org/show_bug.cgi?id=79932
79         <rdar://problem/9274953>
80
81         Reviewed by Simon Fraser.
82         
83         Portions of patch by Nikolas Zimmermann and Mustafizur Rahaman.
84
85         Add wkCGPathAddRoundedRect.
86
87         * WebCoreSupport/WebSystemInterface.mm:
88         (InitWebCoreSystemInterface):
89
90 2012-03-20  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
91
92         Convert hasSpellingMarker to use Internals interface.
93         https://bugs.webkit.org/show_bug.cgi?id=81300
94
95         Reviewed by Ryosuke Niwa.
96
97         Remove hasSpellingMarker support, since it can support in the cross-port way
98         through the Internals interface.
99
100         * WebKit.order:
101         * WebView/WebFrame.mm:
102         * WebView/WebFramePrivate.h:
103
104 2012-03-19  Adam Barth  <abarth@webkit.org>
105
106         Remove support for "magic" iframe
107         https://bugs.webkit.org/show_bug.cgi?id=81590
108
109         Reviewed by Eric Seidel.
110
111         Remove FrameLoaderClient methods that no longer exist.
112
113         * WebCoreSupport/WebFrameLoaderClient.h:
114         * WebCoreSupport/WebFrameLoaderClient.mm:
115
116 2012-03-19  Enrica Casucci  <enrica@apple.com>
117
118         WebKit2: create sandbox extensions for files that are dropped in an input control.
119         https://bugs.webkit.org/show_bug.cgi?id=81153
120         <rdar://problem/11031207>
121
122         Reviewed by Alexey Proskuryakov.
123
124         * WebCoreSupport/WebDragClient.mm:
125         (WebDragClient::willPerformDragDestinationAction): Avoid calling the delegate with the new drag action.
126         We want to avoid any unwanted side effects for the WebKit clients.
127
128 2012-03-19  Emil A Eklund  <eae@chromium.org>
129
130         [mac/chromium] Change platform code to use pixelSnappedRect methods
131         https://bugs.webkit.org/show_bug.cgi?id=81016
132
133         Reviewed by Eric Seidel.
134
135         * Plugins/WebBaseNetscapePluginView.mm:
136         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]):
137         * WebView/WebFrame.mm:
138         (-[WebFrame _getVisibleRect:]):
139         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
140         * WebView/WebView.mm:
141         (-[WebView _dashboardRegions]):
142         (-[WebView trackedRepaintRects]):
143
144 2012-03-16  Brady Eidson  <beidson@apple.com>
145
146         <rdar://problem/11027997> and https://bugs.webkit.org/show_bug.cgi?id=81412
147         REGRESSION (r107435) Copy a link and paste to Mail: Nothing is pasted
148
149         Reviewed by Geoff Garen.
150
151         * WebCoreSupport/WebEditorClient.mm:
152         (WebEditorClient::setInsertionPasteboard):
153         * WebCoreSupport/WebPlatformStrategies.h:
154         (WebPlatformStrategies):
155         * WebCoreSupport/WebPlatformStrategies.mm:
156         (WebPlatformStrategies::url):
157
158 2012-03-08  Jer Noble  <jer.noble@apple.com>
159
160         Support W3C Full Screen API proposal
161         https://bugs.webkit.org/show_bug.cgi?id=80660
162
163         Reviewed by Alexey Proskuryakov.
164
165         Allow full screen elements to access the keyboard.
166
167         * WebView/WebView.mm:
168         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
169
170 2012-03-07  Jon Lee  <jonlee@apple.com>
171
172         Move NotificationContents into Notification
173         https://bugs.webkit.org/show_bug.cgi?id=80487
174         <rdar://problem/10965519>
175
176         Reviewed by Jian Li.
177
178         * WebView/WebNotification.mm: Refactor to use accessor methods on Notification.
179         (-[WebNotification title]):
180         (-[WebNotification body]):
181
182 2012-03-15  David Hyatt  <hyatt@apple.com>
183
184         https://bugs.webkit.org/show_bug.cgi?id=81258
185
186         Add a preference for enabling the new multi-column layout code that will be based on regions.
187
188         Reviewed by Beth Dakin.
189
190         * WebView/WebPreferenceKeysPrivate.h:
191         * WebView/WebPreferences.mm:
192         (+[WebPreferences initialize]):
193         (-[WebPreferences setRegionBasedColumnsEnabled:]):
194         (-[WebPreferences regionBasedColumnsEnabled]):
195         * WebView/WebPreferencesPrivate.h:
196         * WebView/WebView.mm:
197         (-[WebView _preferencesChanged:]):
198
199 2012-03-15  Brady Eidson  <beidson@apple.com>
200
201         <rdar://problem/11036900> and https://bugs.webkit.org/show_bug.cgi?id=81079
202         REGRESSION(r107844): Clipboard API only remembers most recent data set on clipboard
203
204         Reviewed by Sam Weinig.
205
206         Add the non-destructive "addTypes" to supplement the destructive "setTypes"
207         * WebCoreSupport/WebPlatformStrategies.h:
208         * WebCoreSupport/WebPlatformStrategies.mm:
209         (WebPlatformStrategies::addTypes):
210
211 2012-03-14  Anders Carlsson  <andersca@apple.com>
212
213         java/java-and-plugins.html test failing
214         https://bugs.webkit.org/show_bug.cgi?id=81188
215         <rdar://problem/11048657>
216
217         Reviewed by Sam Weinig.
218
219         When we're marshaling JSObjects that wrap plug-in objects, make sure to check that the
220         current plug-in instance is the same as the plug-in instance the object came from and don't
221         pass the unwrapped object ID if that is the case.
222         
223         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
224         (WebKit::getObjectID):
225         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
226         (WebKit::NetscapePluginInstanceProxy::marshalValues):
227         * Plugins/Hosted/ProxyInstance.h:
228         (ProxyInstance):
229         (WebKit::ProxyInstance::instanceProxy):
230
231 2012-03-14  Michael Saboff  <msaboff@apple.com>
232
233         REGRESSION(r110383): ASSERTION failures in JSCell::finishCreation causing multiple tests to "crash" on the Lion Intel Debug Bots
234         https://bugs.webkit.org/show_bug.cgi?id=80993
235
236         Reviewed by Mark Rowe.
237
238         Moved $(BUILT_PRODUCTS_DIR)/usr/local/include to the front of HEADER_SEARCH_PATH
239         to fix builds given the wtf move.
240
241         * Configurations/WebKit.xcconfig:
242
243 2012-03-13  Jon Lee  <jonlee@apple.com>
244
245         Separate NOTIFICATIONS and LEGACY_NOTIFICATIONS
246         https://bugs.webkit.org/show_bug.cgi?id=80922
247         <rdar://problem/11035082>
248
249         Reviewed by Jian Li.
250
251         You can include either NOTIFICATIONS or LEGACY_NOTIFICATIONS and have a complete API.
252         LEGACY_NOTIFICATIONS should cover all of the previous functionality, and NOTIFICATIONS will cover the
253         new API. Therefore, APIs that are common between the two will have:
254         #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
255
256         This patch initially sets both to be exactly the same. As other bugs with patches begin to migrate to
257         the new API, the defines will begin to split. This allows ports to decide which set of APIs to include.
258
259         Update everything to be #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
260         * WebCoreSupport/WebNotificationClient.h:
261         * WebCoreSupport/WebNotificationClient.mm:
262         (WebNotificationClient::show):
263         (WebNotificationClient::cancel):
264         (WebNotificationClient::clearNotifications):
265         (WebNotificationClient::notificationObjectDestroyed):
266         (WebNotificationClient::notificationControllerDestroyed):
267         (WebNotificationClient::requestPermission):
268         (WebNotificationClient::checkPermission):
269         * WebView/WebNotification.mm:
270         (-[WebNotification title]):
271         (-[WebNotification body]):
272         (-[WebNotification replaceID]):
273         (-[WebNotification origin]):
274         (-[WebNotification notificationID]):
275         (-[WebNotification dispatchShowEvent]):
276         (-[WebNotification dispatchCloseEvent]):
277         (-[WebNotification dispatchClickEvent]):
278         (-[WebNotification dispatchErrorEvent]):
279         * WebView/WebNotificationInternal.h:
280         * WebView/WebView.mm:
281         (-[WebView _commonInitializationWithFrameName:groupName:]):
282
283 2012-03-13  Adam Barth  <abarth@webkit.org> && Benjamin Poulain  <bpoulain@apple.com>
284
285         Always enable ENABLE(CLIENT_BASED_GEOLOCATION)
286         https://bugs.webkit.org/show_bug.cgi?id=78853
287
288         Reviewed by Adam Barth.
289
290         * Configurations/FeatureDefines.xcconfig:
291         * WebCoreSupport/WebChromeClient.h:
292         (WebChromeClient):
293         * WebCoreSupport/WebGeolocationClient.mm:
294         (WebGeolocationClient::lastPosition):
295         * WebView/WebGeolocationPosition.mm:
296         (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
297         (core):
298         (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
299         * WebView/WebGeolocationPositionInternal.h:
300         * WebView/WebView.mm:
301         (-[WebView _commonInitializationWithFrameName:groupName:]):
302         (-[WebView _geolocationDidChangePosition:]):
303         (-[WebView _geolocationDidFailWithError:]):
304
305 2012-03-12  Antonio Gomes  <agomes@rim.com>
306
307         Convert nodesFromRect tests to use Internals interface
308         https://bugs.webkit.org/show_bug.cgi?id=80886
309
310         Reviewed by Ryosuke Niwa.
311
312         Removed mac specific support for nodesFromRect for testing purposes only,
313         since it can work in a cross-port way through the Internals interface.
314
315         * WebKit.order:
316         * WebView/WebView.mm:
317         * WebView/WebViewPrivate.h:
318
319 2012-03-13  Anders Carlsson  <andersca@apple.com>
320
321         Remove a nonexistent WebUIDelegate method from WebUIDelegatePrivate.h
322         https://bugs.webkit.org/show_bug.cgi?id=81014
323
324         Reviewed by Sam Weinig.
325
326         Remove a plug-in halter related WebUIDelegate method.
327
328         * WebView/WebUIDelegatePrivate.h:
329
330 2012-03-13  Shinya Kawanaka  <shinyak@chromium.org>
331
332         REGRESSION: Spellcheck tests hit assertions on Mac.
333         https://bugs.webkit.org/show_bug.cgi?id=80883
334
335         Reviewed by Ryosuke Niwa.
336
337         The bug was caused by the closure object created in requestCheckingOfString accessing
338         request's member variables even though the request object is not an NSObject or allocated
339         in stack. This resulted in the closure not being able to access those variables when invoked.
340
341         Fixed the bug by making local copies of those member variables.
342
343         * WebCoreSupport/WebEditorClient.mm:
344         (WebEditorClient::requestCheckingOfString):
345
346 2012-03-11  Timothy Hatcher  <timothy@apple.com>
347
348         Update how the Web Inspector resources are loaded.
349
350         https://bugs.webkit.org/show_bug.cgi?id=80798
351         rdar://problem/10359959
352
353         Reviewed by Brian Weinstein.
354
355         * WebCoreSupport/WebInspectorClient.mm:
356         (useWebKitWebInspector): Return if we are using the WebCore resources for compatibility
357         with local and nightly builds.
358         (WebInspectorFrontendClient::localizedStringsURL): Decide what path to use.
359         (-[WebInspectorWindowController init]): Ditto.
360         (-[WebInspectorWindowController window]): Decide if the window is textured or not.
361
362 2012-03-09  Jon Lee  <jonlee@apple.com>
363
364         Rename NotificationPresenter to NotificationClient
365         https://bugs.webkit.org/show_bug.cgi?id=80488
366         <rdar://problem/10965558>
367
368         Reviewed by Kentaro Hara.
369
370         Refactor to use renamed WebCore::NotificationClient.
371         * WebCoreSupport/WebNotificationClient.h:
372         * WebCoreSupport/WebNotificationClient.mm:
373         (WebNotificationClient::checkPermission):
374         * WebView/WebViewPrivate.h:
375
376 2012-03-09  Enrica Casucci  <enrica@apple.com>
377
378         Move WebNSURLExtras code down to WebCore.
379         https://bugs.webkit.org/show_bug.cgi?id=80611
380
381         Reviewed by Alexey Proskuryakov.
382
383         Changed the implementation to use newly moved WebCore functions.
384
385         * Misc/WebKitNSStringExtras.mm:
386         (-[NSString _webkit_hasCaseInsensitivePrefix:]):
387         * Misc/WebNSURLExtras.mm:
388         (+[NSURL _web_URLWithUserTypedString:]):
389         (+[NSURL _web_URLWithDataAsString:relativeToURL:]):
390         (+[NSURL _web_URLWithData:]):
391         (+[NSURL _web_URLWithData:relativeToURL:]):
392         (-[NSURL _web_originalData]):
393         (-[NSURL _web_originalDataAsString]):
394         (-[NSURL _web_userVisibleString]):
395         (-[NSURL _web_isEmpty]):
396         (-[NSURL _web_URLCString]):
397         (-[NSURL _web_URLByTruncatingOneCharacterBeforeComponent:]):
398         (-[NSURL _webkit_URLByRemovingFragment]):
399         (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
400         (-[NSURL _web_URLByRemovingUserInfo]):
401         (-[NSURL _web_dataForURLComponentType:]):
402         (-[NSURL _web_schemeData]):
403         (-[NSURL _web_hostData]):
404         (-[NSString _web_isUserVisibleURL]):
405         (-[NSString _web_hostNameNeedsDecodingWithRange:]):
406         (-[NSString _web_hostNameNeedsEncodingWithRange:]):
407         (-[NSString _web_decodeHostNameWithRange:]):
408         (-[NSString _web_encodeHostNameWithRange:]):
409         (-[NSString _web_decodeHostName]):
410         (-[NSString _web_encodeHostName]):
411         * WebCoreSupport/WebSystemInterface.mm:
412         (InitWebCoreSystemInterface):
413
414 2012-03-09  Emil A Eklund  <eae@chromium.org>
415
416         Add roundedPoint to HitTestResult and change platform code to use it
417         https://bugs.webkit.org/show_bug.cgi?id=80715
418
419         Reviewed by James Robinson.
420
421         Change ports to use roundedPoint to avoid exposing subpixel types to
422         platform code.
423
424         * WebCoreSupport/WebContextMenuClient.mm:
425         (WebContextMenuClient::showContextMenu):
426
427 2012-03-09  Jon Lee  <jonlee@apple.com>
428
429         Add support for ENABLE(LEGACY_NOTIFICATIONS)
430         https://bugs.webkit.org/show_bug.cgi?id=80497
431
432         Reviewed by Adam Barth.
433
434         Prep for b80472: Update API for Web Notifications
435         * Configurations/FeatureDefines.xcconfig:
436
437 2012-03-08  Ryosuke Niwa  <rniwa@webkit.org>
438
439         Mac build fix for micro data API.
440
441         * Configurations/FeatureDefines.xcconfig:
442
443 2012-03-08  Jer Noble  <jer.noble@apple.com>
444
445         Unreviewed Snow Leopard build fix.
446
447         On Leopard and Snow Leopard, provide an implementation for -[NSWindow convertRectToScreen:].
448
449         * WebView/WebFullScreenController.mm:
450         (-[NSWindow convertRectToScreen:]):
451
452 2012-02-20  Jer Noble  <jer.noble@apple.com>
453
454         Full Screen Refactor Part 4: Animate into Full Screen mode using new animation classes, WebKit edition.
455         https://bugs.webkit.org/show_bug.cgi?id=78930
456
457         Reviewed by Anders Carlsson.
458
459         Revise WebFullScreenController to have the same general functionality and code path as WKFullScreenWindowController
460         in WebKit2.  As such, the following functions are copies of their equivalents in WKFullScreenWindowController:
461         * WebView/WebFullScreenController.mm:
462         (-[WebFullScreenController init]):
463         (-[WebFullScreenController dealloc]):
464         (-[WebFullScreenController windowDidLoad]):
465         (-[WebFullScreenController cancelOperation:]):
466         (-[WebFullScreenController applicationDidResignActive:]):
467         (-[WebFullScreenController applicationDidChangeScreenParameters:]):
468         (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
469         (-[WebFullScreenController finishedExitFullScreenAnimation:]):
470         (-[WebFullScreenController close]):
471         (-[WebFullScreenController animationDidEnd:]):
472         (-[WebFullScreenController _updateMenuAndDockForFullScreen]):
473         (-[WebFullScreenController _swapView:with:]):
474         (createBackgroundFullscreenWindow):
475         (windowFrameFromApparentFrames):
476         (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
477         (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
478
479         The following is a copy of the equivalent function in WebFullScreenManager:
480         * WebView/WebFullScreenController.mm:
481         (screenRectOfContents):        
482
483         * WebCoreSupport/WebChromeClient.mm:
484         (WebChromeClient::fullScreenRendererChanged): No longer tell the WebView the renderer changed (as it doesn't care.)
485         * WebView/WebFullScreenController.h:
486         * WebView/WebFullScreenController.mm:
487         (-[WebFullScreenController setElement:]): No need to add event listeners to the media element.
488         (-[WebFullScreenController enterFullScreen:]): Same as WKFullScreenWindowController, but not asynchronous.
489         (-[WebFullScreenController exitFullScreen]): Ditto.
490         * WebView/WebView.mm:
491         (-[WebView _enterFullScreenForElement:WebCore::]): Fullscreen -> FullScreen.
492         (-[WebView _exitFullScreenForElement:WebCore::]): Ditto.
493
494 2012-03-08  Matt Lilek  <mrl@apple.com>
495
496         Don't enable VIDEO_TRACK on all OS X platforms
497         https://bugs.webkit.org/show_bug.cgi?id=80635
498
499         Reviewed by Eric Carlson.
500
501         * Configurations/FeatureDefines.xcconfig:
502
503 2012-03-07  Joseph Pecoraro  <pecoraro@apple.com>
504
505         <http://webkit.org/b/80510> Web Inspector crash (iCab)
506
507         Reviewed by Timothy Hatcher.
508
509         * WebCoreSupport/WebInspectorClient.mm:
510         (WebInspectorClient::didResizeMainFrame):
511
512 2012-03-06  Benjamin Poulain  <bpoulain@apple.com>
513
514         [Mac] Update the configuration files for iOS
515         https://bugs.webkit.org/show_bug.cgi?id=80435
516
517         Reviewed by David Kilzer.
518
519         * Configurations/WebKit.xcconfig:
520
521 2012-03-06  Eric Seidel  <eric@webkit.org>
522
523         Make WTF public headers use fully-qualified include paths and remove ForwardingHeaders/wtf
524         https://bugs.webkit.org/show_bug.cgi?id=80363
525
526         Reviewed by Mark Rowe.
527
528         ForwardingHeaders/wtf is no longer necessary (or functional) now that JavaScriptCore
529         no longer includes the WTF headers as private headers.
530
531         * ForwardingHeaders/wtf/ASCIICType.h: Removed.
532         * ForwardingHeaders/wtf/AlwaysInline.h: Removed.
533         * ForwardingHeaders/wtf/Assertions.h: Removed.
534         * ForwardingHeaders/wtf/Deque.h: Removed.
535         * ForwardingHeaders/wtf/DisallowCType.h: Removed.
536         * ForwardingHeaders/wtf/FastMalloc.h: Removed.
537         * ForwardingHeaders/wtf/Forward.h: Removed.
538         * ForwardingHeaders/wtf/GetPtr.h: Removed.
539         * ForwardingHeaders/wtf/HashCountedSet.h: Removed.
540         * ForwardingHeaders/wtf/HashMap.h: Removed.
541         * ForwardingHeaders/wtf/HashSet.h: Removed.
542         * ForwardingHeaders/wtf/HashTraits.h: Removed.
543         * ForwardingHeaders/wtf/ListHashSet.h: Removed.
544         * ForwardingHeaders/wtf/ListRefPtr.h: Removed.
545         * ForwardingHeaders/wtf/Locker.h: Removed.
546         * ForwardingHeaders/wtf/MathExtras.h: Removed.
547         * ForwardingHeaders/wtf/Noncopyable.h: Removed.
548         * ForwardingHeaders/wtf/OwnArrayPtr.h: Removed.
549         * ForwardingHeaders/wtf/OwnPtr.h: Removed.
550         * ForwardingHeaders/wtf/OwnPtrCommon.h: Removed.
551         * ForwardingHeaders/wtf/PassOwnPtr.h: Removed.
552         * ForwardingHeaders/wtf/PassRefPtr.h: Removed.
553         * ForwardingHeaders/wtf/Platform.h: Removed.
554         * ForwardingHeaders/wtf/RefCounted.h: Removed.
555         * ForwardingHeaders/wtf/RefCountedLeakCounter.h: Removed.
556         * ForwardingHeaders/wtf/RefPtr.h: Removed.
557         * ForwardingHeaders/wtf/RetainPtr.h: Removed.
558         * ForwardingHeaders/wtf/StdLibExtras.h: Removed.
559         * ForwardingHeaders/wtf/TemporaryChange.h: Removed.
560         * ForwardingHeaders/wtf/Threading.h: Removed.
561         * ForwardingHeaders/wtf/UnusedParam.h: Removed.
562         * ForwardingHeaders/wtf/VMTags.h: Removed.
563         * ForwardingHeaders/wtf/ValueCheck.h: Removed.
564         * ForwardingHeaders/wtf/Vector.h: Removed.
565         * ForwardingHeaders/wtf/VectorTraits.h: Removed.
566         * ForwardingHeaders/wtf/unicode/Unicode.h: Removed.
567         * ForwardingHeaders/wtf/unicode/icu/UnicodeIcu.h: Removed.
568
569 2012-03-05  Joseph Pecoraro  <pecoraro@apple.com>
570
571         Web Inspector: Hide dock button when not allowed to dock
572         https://bugs.webkit.org/show_bug.cgi?id=78575
573
574         Reviewed by Pavel Feldman.
575
576         * WebCoreSupport/WebInspectorClient.h:
577         (WebCore):
578         (WebInspectorClient):
579         * WebCoreSupport/WebInspectorClient.mm:
580         (WebInspectorClient::didResizeMainFrame):
581
582 2012-03-05  Gavin Barraclough  <barraclough@apple.com>
583
584         putByIndex should throw in strict mode
585         https://bugs.webkit.org/show_bug.cgi?id=80335
586
587         Reviewed by Filip Pizlo.
588
589         Make the MethodTable PutByIndex trap take a boolean 'shouldThrow' parameter.
590
591         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
592         (WebKit::NetscapePluginInstanceProxy::setProperty):
593
594 2012-03-05  Joseph Pecoraro  <pecoraro@apple.com>
595
596         Unreviewed rollout of r109858 for restructuring.
597
598 2012-03-05  Joseph Pecoraro  <pecoraro@apple.com>
599
600         <http://webkit.org/b/78575> Web Inspector: Hide dock button when not allowed to dock
601
602         Reviewed by Timothy Hatcher.
603
604         * WebCoreSupport/WebInspectorClient.h:
605         (WebInspectorClient):
606         * WebCoreSupport/WebInspectorClient.mm:
607         (WebInspectorClient::updateDockingAvailability):
608
609 2012-03-02  Jon Lee  <jonlee@apple.com>
610
611         Add support for notification replaceId in Mac WebKit and WK2
612         https://bugs.webkit.org/show_bug.cgi?id=80206
613         <rdar://problem/10965574>
614
615         Reviewed by Sam Weinig.
616
617         * WebView/WebNotification.h: Add replaceID method.
618         * WebView/WebNotification.mm:
619         (-[WebNotification replaceID]):
620
621 2012-03-05  Adam Barth  <abarth@webkit.org>
622
623         Geolocation should use a ScriptExecutionContext as its context object
624         https://bugs.webkit.org/show_bug.cgi?id=80248
625
626         Reviewed by Kentaro Hara.
627
628         * WebView/WebFrame.mm:
629         (-[WebFrame _cacheabilityDictionary]):
630             - We no longer special-case Geolocation.
631
632 2012-03-03  Benjamin Poulain  <benjamin@webkit.org>
633
634         Remove the redundant method KURL::protocolInHTTPFamily()
635         https://bugs.webkit.org/show_bug.cgi?id=80216
636
637         Reviewed by Anders Carlsson.
638
639         * WebCoreSupport/WebFrameLoaderClient.mm:
640         (WebFrameLoaderClient::createPlugin):
641
642 2012-03-03  Hans Wennborg  <hans@chromium.org>
643
644         Implement Speech JavaScript API
645         https://bugs.webkit.org/show_bug.cgi?id=80019
646
647         Reviewed by Adam Barth.
648
649         Add ENABLE_SCRIPTED_SPEECH.
650
651         * Configurations/FeatureDefines.xcconfig:
652
653 2012-03-03  Anders Carlsson  <andersca@apple.com>
654
655         Fix build with newer versions of clang.
656
657         * Panels/WebAuthenticationPanel.m:
658         (-[WebAuthenticationPanel setUpForChallenge:]):
659         Use %ld and cast to long.
660
661         * Plugins/WebNetscapePluginView.mm:
662         (-[WebNetscapePluginView getVariable:value:]):
663         Cast the switch parameter to unsigned to prevent warnings about case values not being part of the enum type.
664
665 2012-03-01  Nikolas Zimmermann  <nzimmermann@rim.com>
666
667         Unreviewed, rolling out r109255.
668         http://trac.webkit.org/changeset/109255
669         https://bugs.webkit.org/show_bug.cgi?id=79932
670
671         Breaks rounded rects with dashed strokes in SVG
672
673         * WebCoreSupport/WebSystemInterface.mm:
674         (InitWebCoreSystemInterface):
675
676 2012-02-29  Adam Barth  <abarth@webkit.org>
677
678         ScriptExecutionContext has too many ifdef ENABLE(SQL_DATABASE)
679         https://bugs.webkit.org/show_bug.cgi?id=79633
680
681         Reviewed by Eric Seidel.
682
683         * WebView/WebFrame.mm:
684         (-[WebFrame _cacheabilityDictionary]):
685
686 2012-02-29  Tim Horton  <timothy_horton@apple.com>
687
688         Make use of CG rounded-rect primitives
689         https://bugs.webkit.org/show_bug.cgi?id=79932
690         <rdar://problem/9274953>
691
692         Reviewed by Simon Fraser.
693
694         Add wkCGPathAddRoundedRect.
695
696         * WebCoreSupport/WebSystemInterface.mm:
697         (InitWebCoreSystemInterface):
698
699 2012-02-29  Enrica Casucci  <enrica@apple.com>
700
701         Crash at -[WebFrame(WebInternal) _setTypingStyle:withUndoAction:]
702         https://bugs.webkit.org/show_bug.cgi?id=79937
703         <rdar://problem/10942936>
704
705         Reviewed by Dan Bernstein.
706
707         * WebView/WebFrame.mm:
708         (-[WebFrame _setTypingStyle:withUndoAction:]): Adding a null check.
709
710 2012-02-28  Simon Fraser  <simon.fraser@apple.com>
711
712         Update WebKitSystemInterface.
713
714         Reviewed by Sam Weinig.
715
716         * WebCoreSupport/WebSystemInterface.mm:
717         (InitWebCoreSystemInterface):
718
719 2012-02-28  Enrica Casucci  <enrica@apple.com>
720
721         More Pasteboard code cleanup.
722         https://bugs.webkit.org/show_bug.cgi?id=79816
723
724         Removing the last references to NSPasteboard.
725
726         Reviewed by Alexey Proskuryakov.
727
728         * WebCoreSupport/WebEditorClient.h:
729         * WebCoreSupport/WebEditorClient.mm:
730         (WebEditorClient::setInsertionPasteboard):
731
732 2012-02-26  Hajime Morrita  <morrita@chromium.org>
733
734         Move ChromeClient::showContextMenu() to ContextMenuClient
735         https://bugs.webkit.org/show_bug.cgi?id=79427
736
737         Reviewed by Adam Barth.
738
739         * WebCoreSupport/WebContextMenuClient.h:
740         (WebContextMenuClient):
741         * WebCoreSupport/WebContextMenuClient.mm:
742         (WebContextMenuClient::showContextMenu): Moved from WebChromeClient
743         * WebCoreSupport/WebChromeClient.h:
744         * WebCoreSupport/WebChromeClient.mm:
745
746 2012-02-25  Sam Weinig  <sam@webkit.org>
747
748         QuickLook events don't make it to WebKit plugins.
749         <rdar://problem/10931721>
750
751         Reviewed by Anders Carlsson.
752
753         * WebView/WebHTMLView.mm:
754         (isQuickLookEvent):
755         (-[WebHTMLView hitTest:]):
756         Allow QuickLook events to hit test down to subviews.
757
758 2012-02-24  Brady Eidson  <beidson@apple.com>
759
760         <rdar://problem/10805709> and https://bugs.webkit.org/show_bug.cgi?id=79421
761         Need a WK1 Mac API to filter which subframes go into WebArchives as they are created
762
763         Reviewed by Sam Weinig (with additional comments by Adam Roben)
764
765         Add webArchiveByFilteringSubframes: which takes a callback block:
766         * DOM/WebDOMOperationsPrivate.h:
767
768         Add FrameFilter that adapts the block, and use it to implement the new SPI:
769         * DOM/WebDOMOperations.mm:
770         (WebFrameFilter):
771         (WebFrameFilter::WebFrameFilter):
772         (WebFrameFilter::~WebFrameFilter):
773         (WebFrameFilter::shouldIncludeSubframe):
774         (-[DOMNode webArchiveByFilteringSubframes:]):
775
776 2012-02-24  Shinya Kawanaka  <shinyak@chromium.org>
777
778         SpellCheckRequest needs to know the context where the spellcheck happened.
779         https://bugs.webkit.org/show_bug.cgi?id=79320
780
781         Reviewed by Hajime Morita.
782
783         * WebCoreSupport/WebEditorClient.h:
784         * WebCoreSupport/WebEditorClient.mm:
785         (WebEditorClient::requestCheckingOfString):
786
787 2012-02-23  Andy Estes  <aestes@apple.com>
788
789         Rename [setS|s]uppressIncrementalRendering to [setS|s]uppressesIncrementalRendering and make it WebPreferences API.
790         https://bugs.webkit.org/show_bug.cgi?id=79433
791
792         Reviewed by Dan Bernstein.
793
794         * WebCoreSupport/WebInspectorClient.mm:
795         (-[WebInspectorWindowController init]):
796         * WebView/WebPreferenceKeysPrivate.h:
797         * WebView/WebPreferences.h:
798         * WebView/WebPreferences.mm:
799         (+[WebPreferences initialize]):
800         (-[WebPreferences setSuppressesIncrementalRendering:]):
801         (-[WebPreferences suppressesIncrementalRendering]):
802         (-[WebPreferences setSuppressIncrementalRendering:]):
803         (-[WebPreferences suppressIncrementalRendering]):
804         * WebView/WebView.mm:
805         (-[WebView _preferencesChanged:]):
806
807 2012-02-22  Hajime Morrita  <morrita@chromium.org>
808
809         NOTIFICATIONS should be implemented as PageSupplement
810         https://bugs.webkit.org/show_bug.cgi?id=79052
811
812         Reviewed by Adam Barth.
813
814         * WebView/WebView.mm:
815         (-[WebView _commonInitializationWithFrameName:groupName:]):
816
817 2012-02-21  Ryosuke Niwa  <rniwa@webkit.org>
818
819         Remove the remaining uses of CSSStyleDeclaration in Editor
820         https://bugs.webkit.org/show_bug.cgi?id=78939
821
822         Reviewed by Enrica Casucci.
823
824         * WebCoreSupport/WebEditorClient.h:
825         (WebEditorClient):
826         * WebCoreSupport/WebEditorClient.mm:
827         (WebEditorClient::shouldApplyStyle):
828         * WebView/WebFrame.mm:
829         (-[WebFrame _setTypingStyle:withUndoAction:]):
830         * WebView/WebHTMLView.mm:
831         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
832         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
833         * WebView/WebView.mm:
834         (-[WebView applyStyle:]):
835
836 2012-02-22  Ryosuke Niwa  <rniwa@webkit.org>
837
838         Remove the remaining uses of CSSStyleDeclaration in Editor
839         https://bugs.webkit.org/show_bug.cgi?id=78939
840
841         Reviewed by Enrica Casucci.
842
843         * WebCoreSupport/WebEditorClient.h:
844         (WebEditorClient):
845         * WebCoreSupport/WebEditorClient.mm:
846         (WebEditorClient::shouldApplyStyle):
847         * WebView/WebFrame.mm:
848         (-[WebFrame _setTypingStyle:withUndoAction:]):
849         * WebView/WebHTMLView.mm:
850         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
851         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
852         * WebView/WebView.mm:
853         (-[WebView applyStyle:]):
854
855 2012-02-22  Jon Lee  <jonlee@apple.com>
856
857         Part of r108409 was incorrect, and incorporated an older version of a sub-patch.
858         This is the actual sub-patch that should have been submitted.
859
860         * WebCoreSupport/WebNotificationClient.h:
861         * WebCoreSupport/WebNotificationClient.mm:
862         (WebNotificationClient::show):
863         (WebNotificationClient::cancel):
864         (WebNotificationClient::clearNotifications):
865         (WebNotificationClient::notificationObjectDestroyed):
866         (WebNotificationClient::notificationControllerDestroyed):
867
868 2012-02-21  Jon Lee  <jonlee@apple.com>
869
870         Build fix. Push ENABLE_NOTIFICATIONS into .mm file.
871
872         * WebCoreSupport/WebNotificationClient.h:
873         * WebView/WebNotification.h:
874         * WebView/WebNotification.mm:
875         (-[WebNotification title]):
876         (-[WebNotification body]):
877         (-[WebNotification origin]):
878         (-[WebNotification notificationID]):
879         (-[WebNotification dispatchShowEvent]):
880         (-[WebNotification dispatchCloseEvent]):
881         (-[WebNotification dispatchClickEvent]):
882         (-[WebNotification dispatchErrorEvent]):
883
884 2012-02-21  John Sullivan  <sullivan@apple.com>
885
886         Build fix.
887
888         * WebView/WebUIDelegatePrivate.h:
889         Added @class declarations for DOMNode and DOMElement.
890
891 2012-02-21  Jon Lee  <jonlee@apple.com>
892
893         Build fix for r108409.
894
895         * WebCoreSupport/WebNotificationClient.h:
896         (WebCore):
897         * WebCoreSupport/WebNotificationClient.mm:
898         * WebView/WebNotification.h:
899         (WebSecurityOrigin):
900         * WebView/WebNotification.mm:
901         (core):
902         (-[WebNotification initWithCoreNotification:notificationID:]):
903
904 2012-02-21  Jon Lee  <jonlee@apple.com>
905
906         Bring notifications support to WK1 mac: permission requests
907         https://bugs.webkit.org/show_bug.cgi?id=78783
908         <rdar://problem/10610578>
909
910         Reviewed by Anders Carlsson.
911
912         * WebCoreSupport/WebNotificationClient.h:
913         * WebCoreSupport/WebNotificationClient.mm: Create policy listener, which conforms to the
914         WebAllowDenyPolicyListener protocol, similar to geolocation.
915         (WebNotificationClient::requestPermission):
916         (WebNotificationClient::checkPermission):
917         (-[WebNotificationPolicyListener initWithCallback:]):
918         (-[WebNotificationPolicyListener allow]): Call the callback.
919         (-[WebNotificationPolicyListener deny]): Call the callback.
920         * WebView/WebUIDelegatePrivate.h: Define new UI delegate method to ask the user to decide a
921         policy for navigations.
922
923         ====
924         Bring notifications support to WK1 mac: showing, canceling, removing notifications
925
926         Create a WebKit wrapper object for WebCore::Notification, which also keeps track of an assigned
927         ID.
928         * WebView/WebNotification.h: Added.
929         (WebSecurityOrigin):
930         * WebView/WebNotification.mm: Added.
931         (core):
932         (-[WebNotification initWithCoreNotification:notificationID:]):
933         (-[WebNotification init]):
934         (-[WebNotification dealloc]):
935         (-[WebNotification title]):
936         (-[WebNotification body]):
937         (-[WebNotification origin]):
938         (-[WebNotification notificationID]):
939         (-[WebNotification dispatchShowEvent]):
940         (-[WebNotification dispatchCloseEvent]):
941         (-[WebNotification dispatchClickEvent]):
942         (-[WebNotification dispatchErrorEvent]):
943         * WebView/WebNotificationInternal.h: Added.
944         (WebCore): Internal category to allow creating instances with WebCore objects.
945
946         Extend WebView to include a WebNotificationProvider, which clients implement.
947         * WebView/WebViewData.h: Add a private member for the provider.
948         * WebView/WebViewPrivate.h:
949             * Define an enum WebNotificationPermission that mirrors WebCore::NotificationPresenter::Permission
950             that client which implement the provider can use to return policy decisions.
951             * Define WebNotificationProvider.
952             * Category WebViewNotification extends WebView with methods that set and manager the
953             notification provider, and handle events from the platform notifications.
954         * WebView/WebView.mm:
955         (-[WebView _setNotificationProvider:]): Sets the provider when initializing the WebView.
956         (-[WebView _notificationControllerDestroyed]):
957         (-[WebView _notificationProvider]):
958         (-[WebView _notificationDidShow:]):
959         (-[WebView _notificationDidClick:]):
960         (-[WebView _notificationsDidClose:]):
961
962         * WebCoreSupport/WebNotificationClient.h: Add variables that map between WebCore::Notification
963         instances, their assigned IDs, their contexts, and corresponding WebKit wrapper objects.
964         * WebCoreSupport/WebNotificationClient.mm:
965         (generateNotificationID): Created unique IDs for each shown notification.
966         (WebNotificationClient::show): Create wrapper object for notification, assign ID, cache the
967         mappings between the objects, and forward it to the provider.
968         (WebNotificationClient::cancel):
969         (WebNotificationClient::clearNotifications): Clear all notifications associated with the
970         provided context.
971         (WebNotificationClient::notificationObjectDestroyed): Remove the notification from the maps.
972         (WebNotificationClient::notificationControllerDestroyed): If the controller is destroyed, tell
973         the provider to clear of the notifications related to this web view.
974
975         ====
976         (Prep work for) Bring notifications support to WK1 mac
977
978         Rename WebGeolocationPolicyListener. The interface is generic enough to be reused for
979         notification requests. To avoid having to create a new listener type, instead rename it
980         to WebAllowDenyPolicyListener.
981         * WebView/WebUIDelegatePrivate.h: Rename the protocol.
982         * WebCoreSupport/WebGeolocationClient.mm: Refactor geolocation request listener to use
983         new name.
984
985         Add preference to keep track of whether notifications are enabled in general.
986         * WebView/WebPreferenceKeysPrivate.h: Add WebNotificationsEnabledKey for storing the
987         preference.
988         * WebView/WebPreferences.mm:
989         (+[WebPreferences initialize]): By default have them enabled.
990         (-[WebPreferences setNotificationsEnabled:]):
991         (-[WebPreferences notificationsEnabled]):
992         * WebView/WebPreferencesPrivate.h:
993
994         Add a stringValue method that exposes WebCore::SecurityOrigin::toString() for storing the
995         notification policy for a given origin.
996         * WebCoreSupport/WebSecurityOrigin.mm:
997         (-[WebSecurityOrigin stringValue]):
998         * WebCoreSupport/WebSecurityOriginPrivate.h:
999
1000 2012-02-21  Sam Weinig  <sam@webkit.org>
1001
1002         Attempt to fix the Snow Leopard build.
1003
1004         * Configurations/Base.xcconfig:
1005
1006 2012-02-21  Sam Weinig  <sam@webkit.org>
1007
1008         Use libc++ when building with Clang on Mac
1009         https://bugs.webkit.org/show_bug.cgi?id=78981
1010
1011         Reviewed by Dan Bernstein.
1012
1013         * Configurations/Base.xcconfig:
1014
1015 2012-02-17  Mihnea Ovidenie  <mihnea@adobe.com>
1016
1017         CSS regions enabled by default
1018         https://bugs.webkit.org/show_bug.cgi?id=78525
1019
1020         Reviewed by David Hyatt.
1021
1022         Add a runtime preference to enable/disable regions functionality at runtime(WebKitCSSRegionsEnabled).
1023         CSSRegions are still enabled by default.
1024         In DRT, use layoutTestController.overridePreference("WebKitCSSRegionsEnabled", "0") to disable the css regions functionality.
1025
1026         * WebView/WebPreferenceKeysPrivate.h:
1027         * WebView/WebPreferences.mm:
1028         (+[WebPreferences initialize]):
1029         (-[WebPreferences cssRegionsEnabled]):
1030         (-[WebPreferences setCSSRegionsEnabled:]):
1031         * WebView/WebPreferencesPrivate.h:
1032         * WebView/WebView.mm:
1033         (-[WebView _preferencesChanged:]):
1034
1035 2012-02-17  Enrica Casucci  <enrica@apple.com>
1036
1037         Refactor DragData class to use PlatformStrategies in the Mac implementation.
1038         https://bugs.webkit.org/show_bug.cgi?id=78768
1039
1040         Reviewed by Darin Adler.
1041
1042         * WebCoreSupport/WebPlatformStrategies.h: Added color() method.
1043         * WebCoreSupport/WebPlatformStrategies.mm:
1044         (WebPlatformStrategies::color):
1045
1046 2012-02-16  Brady Eidson  <beidson@apple.com>
1047
1048         <rdar://problem/10616280> and https://bugs.webkit.org/show_bug.cgi?id=78767
1049         REGRESSION (r90471) - iAd Producer 2.0.1 produces blank pages
1050
1051         Reviewed by Sam Weinig.
1052
1053         * WebView/WebView.mm:
1054         (-[WebView _needsIsLoadingInAPISenseQuirk]):
1055         (-[WebView _preferencesChanged:]):
1056
1057 2012-02-15  Enrica Casucci  <enrica@apple.com>
1058
1059         Refactor ClipboardMac class to use PlatformStrategies.
1060         https://bugs.webkit.org/show_bug.cgi?id=78554
1061
1062         Reviewed by Anders Carlsson.
1063
1064         * WebCoreSupport/WebDragClient.h: Changed methods signature to use name based pasteboard.
1065         * WebCoreSupport/WebDragClient.mm: Ditto.
1066         (WebDragClient::willPerformDragSourceAction):
1067         (WebDragClient::startDrag):
1068         (WebDragClient::declareAndWriteDragImage):
1069         * WebCoreSupport/WebPlatformStrategies.h: Added new methods.
1070         * WebCoreSupport/WebPlatformStrategies.mm:
1071         (WebPlatformStrategies::changeCount):
1072         (WebPlatformStrategies::uniqueName):
1073
1074 2012-02-15  Sadrul Habib Chowdhury  <sadrul@chromium.org>
1075
1076         Notify ChromeClient when touch-event handlers are installed/removed.
1077         https://bugs.webkit.org/show_bug.cgi?id=77440
1078
1079         Reviewed by Darin Fisher and Ryosuke Niwa.
1080
1081         * WebCoreSupport/WebChromeClient.h:
1082
1083 2012-02-14  Matt Lilek  <mrl@apple.com>
1084
1085         Don't ENABLE_DASHBOARD_SUPPORT unconditionally on all Mac platforms
1086         https://bugs.webkit.org/show_bug.cgi?id=78629
1087
1088         Reviewed by David Kilzer.
1089
1090         * Configurations/FeatureDefines.xcconfig:
1091
1092 2012-02-14  Alexey Proskuryakov  <ap@apple.com>
1093
1094         [Mac][Win][WK2] Switch to RFC 6455 protocol for WebSockets
1095         https://bugs.webkit.org/show_bug.cgi?id=78541
1096         <rdar://problem/10036695>
1097
1098         Reviewed by Kent Tamura.
1099
1100         * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Changed default value of the
1101         preference.
1102
1103 2012-02-11  Nikolas Zimmermann  <nzimmermann@rim.com>
1104
1105         Convert svg/animations to use SMIL methods for driving the timeline
1106         https://bugs.webkit.org/show_bug.cgi?id=78422
1107
1108         Reviewed by Dirk Schulze.
1109
1110         Remove SVG animation sampling functionality provided for DRT, which no longer uses it.
1111         Instead we switched the svg/animations tests to use SVGSVGElement.setCurrentTime.
1112
1113         * WebKit.order:
1114         * WebView/WebFrame.mm:
1115         * WebView/WebFramePrivate.h:
1116
1117 2012-02-13  Enrica Casucci  <enrica@apple.com>
1118
1119          Refactor Mac platform implementation of the Pasteboard class to use Platform Strategies.
1120          https://bugs.webkit.org/show_bug.cgi?id=78282
1121  
1122          This patch removes any accesss to the NSPasteboard object from the Pasteboard class which
1123          now makes use of a new pasteboardStrategy object that is implemented both in WebKit and
1124          WebKit2. The actual access to NSPasteboard is now performed inside the PlatformPasteboard
1125          class. Currently both WebKit and WebKit2 use the same implementation of the PasteboardStrategy
1126          interface but this one more step in the direction of removing access to NSPasteboard from
1127          the WebProcess.
1128          As part of the refactoring the I've reduced to a minimum the use of OBJ-C classes.
1129          
1130          Reviewed by Anders Carlsson.
1131  
1132          * WebCoreSupport/WebPlatformStrategies.h: Added PasteboardStrategy.
1133          * WebCoreSupport/WebPlatformStrategies.mm: Added implementation of PasteboardStrategy interface.
1134          (WebPlatformStrategies::createPasteboardStrategy):
1135          (WebPlatformStrategies::getTypes):
1136          (WebPlatformStrategies::bufferForType):
1137          (WebPlatformStrategies::getPathnamesForType):
1138          (WebPlatformStrategies::stringForType):
1139          (WebPlatformStrategies::copy):
1140          (WebPlatformStrategies::setTypes):
1141          (WebPlatformStrategies::setBufferForType):
1142          (WebPlatformStrategies::setPathnamesForType):
1143          (WebPlatformStrategies::setStringForType):
1144
1145 2012-02-12  Hajime Morrita  <morrita@chromium.org>
1146
1147         Page should have less intrusive way to associate API implementation objects.
1148         https://bugs.webkit.org/show_bug.cgi?id=78085
1149
1150         Reviewed by Adam Barth.
1151
1152         * WebView/WebView.mm:
1153         (-[WebView _commonInitializationWithFrameName:groupName:]):
1154
1155 2012-02-11  Sheriff Bot  <webkit.review.bot@gmail.com>
1156
1157         Unreviewed, rolling out r107435.
1158         http://trac.webkit.org/changeset/107435
1159         https://bugs.webkit.org/show_bug.cgi?id=78410
1160
1161         It broke the Qt build (Requested by Ossy on #webkit).
1162
1163         * WebCoreSupport/WebPlatformStrategies.h:
1164         (WebPlatformStrategies):
1165         * WebCoreSupport/WebPlatformStrategies.mm:
1166         (WebPlatformStrategies::addVisitedLink):
1167
1168 2012-02-10  Adam Klein  <adamk@chromium.org>
1169
1170         Enable MUTATION_OBSERVERS by default on all platforms
1171         https://bugs.webkit.org/show_bug.cgi?id=78196
1172
1173         Reviewed by Ojan Vafai.
1174
1175         * Configurations/FeatureDefines.xcconfig:
1176
1177 2012-02-10  Enrica Casucci  <enrica@apple.com>
1178
1179         Refactor Mac platform implementation of the Pasteboard class to use Platform Strategies.
1180         https://bugs.webkit.org/show_bug.cgi?id=78282
1181
1182         This patch removes any accesss to the NSPasteboard object from the Pasteboard class which
1183         now makes use of a new pasteboardStrategy object that is implemented both in WebKit and
1184         WebKit2. The actual access to NSPasteboard is now performed inside the PlatformPasteboard
1185         class. Currently both WebKit and WebKit2 use the same implementation of the PasteboardStrategy
1186         interface but this one more step in the direction of removing access to NSPasteboard from
1187         the WebProcess.
1188         As part of the refactoring the I've reduced to a minimum the use of OBJ-C classes.
1189         
1190         Reviewed by Anders Carlsson.
1191
1192         * WebCoreSupport/WebPlatformStrategies.h: Added PasteboardStrategy.
1193         * WebCoreSupport/WebPlatformStrategies.mm: Added implementation of PasteboardStrategy interface.
1194         (WebPlatformStrategies::createPasteboardStrategy):
1195         (WebPlatformStrategies::getTypes):
1196         (WebPlatformStrategies::bufferForType):
1197         (WebPlatformStrategies::getPathnamesForType):
1198         (WebPlatformStrategies::stringForType):
1199         (WebPlatformStrategies::copy):
1200         (WebPlatformStrategies::setTypes):
1201         (WebPlatformStrategies::setBufferForType):
1202         (WebPlatformStrategies::setPathnamesForType):
1203         (WebPlatformStrategies::setStringForType):
1204
1205 2012-02-10  Benjamin Poulain  <bpoulain@apple.com>
1206
1207         [Mac] DYLIB_INSTALL_NAME_BASE should not be prefixed by the SDKROOT
1208         https://bugs.webkit.org/show_bug.cgi?id=78320
1209
1210         Reviewed by Joseph Pecoraro.
1211
1212         <rdar://problem/10839750>
1213
1214         * Configurations/WebKit.xcconfig:
1215
1216 2012-02-09  Alexey Proskuryakov  <ap@apple.com>
1217
1218         REGRESSION (r104885): Articles not displayed in Vienna RSS reader
1219         https://bugs.webkit.org/show_bug.cgi?id=78280
1220         <rdar://problem/10762545>
1221
1222         Reviewed by Oliver Hunt.
1223
1224         * Misc/WebNSURLExtras.h:
1225         * Misc/WebNSURLExtras.mm: (-[NSURL _webkit_URLFromURLOrPath]):
1226         Added a method to create a URL from a path, similarly to what KURL used to do.
1227
1228         * WebView/WebFrame.mm: (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]):
1229         Use it in an API where a known regression occurred.
1230
1231 2012-02-07  Antti Koivisto  <antti@apple.com>
1232
1233         REGRESSION (r106681): Null check missing in [WebFrame(WebInternal) _typingStyle]
1234         https://bugs.webkit.org/show_bug.cgi?id=78080
1235
1236         Reviewed by Reviewed by Andreas Kling, Darin Adler and Dan Bernstein.
1237
1238         * WebView/WebFrame.mm:
1239         (-[WebFrame _typingStyle]):
1240
1241 2012-02-07  Tony Chang  <tony@chromium.org>
1242
1243         merge DashboardSupportCSSPropertyNames.in into CSSPropertyNames.in
1244         https://bugs.webkit.org/show_bug.cgi?id=78036
1245
1246         Reviewed by Darin Adler.
1247
1248         * Configurations/FeatureDefines.xcconfig: Add ENABLE_DASHBOARD_SUPPORT to FEATURE_DEFINES.
1249
1250 2012-02-06  Anders Carlsson  <andersca@apple.com>
1251
1252         Overlay scrollbars flash when window is simply activated
1253         https://bugs.webkit.org/show_bug.cgi?id=77911
1254         <rdar://problem/10211995>
1255
1256         Reviewed by Kenneth Russell.
1257
1258         * WebView/WebView.mm:
1259         (-[WebView _windowWillOrderOnScreen:]):
1260         (-[WebView _windowWillOrderOffScreen:]):
1261         Call FocusController::setContainingWindowIsVisible.
1262
1263
1264 2012-02-06  Matthew Delaney  <mdelaney@apple.com>
1265
1266         toDataURL() uses stale data after putImageData()
1267         https://bugs.webkit.org/show_bug.cgi?id=65767
1268
1269         Reviewed by Chris Marrin.
1270
1271         * WebCoreSupport/WebSystemInterface.mm: 
1272
1273 2012-02-03  Antti Koivisto  <antti@apple.com>
1274
1275         Rename CSSMutableStyleDeclaration.h/.cpp to StylePropertySet.h/.cpp 
1276         https://bugs.webkit.org/show_bug.cgi?id=77779
1277
1278         Reviewed by Darin Adler.
1279
1280         * WebView/WebHTMLView.mm:
1281
1282 2012-02-03  Antti Koivisto  <antti@apple.com>
1283
1284         https://bugs.webkit.org/show_bug.cgi?id=77740
1285         Split CSSMutableStyleDeclaration into separate internal and CSSOM types 
1286
1287         Reviewed by Andreas Kling and Darin Adler.
1288
1289         * WebView/WebFrame.mm:
1290         (-[WebFrame _typingStyle]):
1291
1292 2012-02-03  Beth Dakin  <bdakin@apple.com>
1293
1294         https://bugs.webkit.org/show_bug.cgi?id=77691
1295         Fix PlatformScreen layering violation and PlatformScreenMac's incorrect use 
1296         of device scale
1297
1298         Reviewed by Andy Estes.
1299
1300         toUserSpace() and toDeviceSpace() don't need to take device scale. Also 
1301         restore a comment that I needlessly removed.
1302         * WebCoreSupport/WebChromeClient.mm:
1303         (WebChromeClient::setWindowRect):
1304         (WebChromeClient::windowRect):
1305
1306 2012-02-01  Dan Bernstein  <mitz@apple.com>
1307
1308         WebKit/mac part of <rdar://problem/10442663> Paginated display does not respect page-break-{before,after}
1309         https://bugs.webkit.org/show_bug.cgi?id=77505
1310
1311         Reviewed by Darin Adler.
1312
1313         * WebView/WebView.mm:
1314         (-[WebView _setPaginationBehavesLikeColumns:]): Added this setter.
1315         (-[WebView _paginationBehavesLikeColumns]): Added this getter.
1316         * WebView/WebViewPrivate.h:
1317
1318 2012-01-25  Eric Seidel  <eric@webkit.org>
1319
1320         HTMLIsIndexElement should not expose HTMLInputElement properties
1321         https://bugs.webkit.org/show_bug.cgi?id=76095
1322
1323         Reviewed by Adam Barth.
1324
1325         * MigrateHeaders.make:
1326
1327 2012-01-31  Pablo Flouret  <pablof@motorola.com>
1328
1329         Fix compilation errors on build-webkit --debug --no-workers on mac.
1330         https://bugs.webkit.org/show_bug.cgi?id=75869
1331
1332         Reviewed by Adam Barth.
1333
1334         * Workers/WebWorkersPrivate.mm:
1335         (+[WebWorkersPrivate workerThreadCount]):
1336
1337 2012-01-30  Beth Dakin  <bdakin@apple.com>
1338
1339         https://bugs.webkit.org/show_bug.cgi?id=77263
1340         PlatformScreenMac should not rely on NSWindow for important bits of data
1341
1342         Reviewed by Geoff Garen.
1343
1344         toUserSpace() and toDeviceSpace() now take a parameter for the 
1345         deviceScaleFactor.
1346         * WebCoreSupport/WebChromeClient.mm:
1347         (windowScaleFactor):
1348         (WebChromeClient::setWindowRect):
1349         (WebChromeClient::windowRect):
1350
1351 2012-01-25  Mark Rowe  <mrowe@apple.com>
1352
1353         Build in to an alternate location when USE_STAGING_INSTALL_PATH is set.
1354
1355         <rdar://problem/10609417> Adopt USE_STAGING_INSTALL_PATH
1356
1357         Reviewed by David Kilzer.
1358
1359         * Configurations/WebKit.xcconfig: Define NORMAL_WEBKIT_FRAMEWORKS_DIR, which contains
1360         the path where WebKit is normally installed. Update WEBKIT_FRAMEWORKS_DIR to point to
1361         the staged frameworks directory when USE_STAGING_INSTALL_PATH is set. Define
1362         NORMAL_PRODUCTION_FRAMEWORKS_DIR, which contains the path where our public frameworks
1363         are normally installed. Update PRODUCTION_FRAMEWORKS_DIR to point to the staged frameworks
1364         directory when USE_STAGING_INSTALL_PATH is set. Always set the framework's install name
1365         based on the normal framework location. This prevents an incorrect install name from being
1366         used when installing in to the staged frameworks directory. Look for our other frameworks
1367         in the staged frameworks directory when USE_STAGING_INSTALL_PATH is set. Update
1368         WEBCORE_PRIVATE_HEADERS_DIR to find WebCore at the top level of the staged frameworks
1369         directory when USE_STAGING_INSTALL_PATH is set, rather than finding it embedded inside of
1370         WebKit.framework.
1371
1372 2012-01-25  Eric Seidel  <eric@webkit.org>
1373
1374         HTMLIsIndexElement should not expose HTMLInputElement properties
1375         https://bugs.webkit.org/show_bug.cgi?id=76095
1376
1377         Reviewed by Adam Barth.
1378
1379         * MigrateHeaders.make:
1380
1381 2012-01-25  Hajime Morita  <morrita@google.com>
1382
1383         ENABLE_SHADOW_DOM should be available via build-webkit --shadow-dom
1384         https://bugs.webkit.org/show_bug.cgi?id=76863
1385
1386         Reviewed by Dimitri Glazkov.
1387
1388         Added a feature flag.
1389
1390         * Configurations/FeatureDefines.xcconfig:
1391
1392 2012-01-25  Enrica Casucci  <enrica@apple.com>
1393
1394         WebView should implement typingAttributes methods to work correctly with the Inspector bar in Mail.
1395         https://bugs.webkit.org/show_bug.cgi?id=76951
1396         <rdar://problem/9325158>
1397
1398         Reviewed by Alexey Proskuryakov.
1399
1400         * WebView/WebHTMLView.mm: Removed typingAttributes implementation.
1401         * WebView/WebView.mm:
1402         (-[WebView typingAttributes]): Added.
1403
1404 2012-01-24  Enrica Casucci  <enrica@apple.com>
1405
1406         WebHTMLView should implement typingAttributes methods to work correctly with the Inspector bar in Mail.
1407         https://bugs.webkit.org/show_bug.cgi?id=76951
1408         <rdar://problem/9325158>
1409
1410         The Inspector bar calls the typingAttributes methods on the clients that support it
1411         to retrieve the set of attributes representing the style at the selection and uses
1412         this information to update the state of the B, I and U buttons.
1413         If this method is not supported, it defaults to the attributes of the previous
1414         character position, reporting an incorrect state.
1415         This occurs only when we have a caret selection.
1416         
1417         Reviewed by Alexey Proskuryakov.
1418
1419         * WebView/WebHTMLView.mm:
1420         (-[WebHTMLView _styleForAttributeChange:]): Removed dead code.
1421         (-[WebHTMLView _updateFontPanel]): Removed comment that doesn't apply anymore.
1422         (-[WebHTMLView typingAttributes]): Added.
1423
1424 2012-01-24  Benjamin Poulain  <bpoulain@apple.com>
1425
1426         pageCacheSupportsPlugins should default to true on WebKit1
1427         https://bugs.webkit.org/show_bug.cgi?id=76891
1428
1429         Reviewed by Joseph Pecoraro.
1430
1431         The default was left out of r102619 by accident.
1432
1433         * WebView/WebPreferences.mm:
1434         (+[WebPreferences initialize]):
1435
1436 2012-01-23  Geoffrey Garen  <ggaren@apple.com>
1437
1438         JSValue::toString() should return a JSString* instead of a UString
1439         https://bugs.webkit.org/show_bug.cgi?id=76861
1440
1441         Reviewed by Gavin Barraclough.
1442
1443         Mechanical changes to call value() after calling toString(), to
1444         convert from "JS string" (JSString*) to "C++ string" (UString), since
1445         toString() no longer returns a "C++ string".
1446
1447         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1448         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
1449         * WebView/WebFrame.mm:
1450         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1451         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
1452
1453 2012-01-20  Sam Weinig  <sam@webkit.org>
1454
1455         Make WebCore RunLoop work for WebKit1
1456         https://bugs.webkit.org/show_bug.cgi?id=76739
1457
1458         Reviewed by Anders Carlsson.
1459
1460         * Carbon/CarbonWindowAdapter.mm:
1461         (+[CarbonWindowAdapter initialize]):
1462         * History/WebBackForwardList.mm:
1463         (+[WebBackForwardList initialize]):
1464         * History/WebHistoryItem.mm:
1465         (+[WebHistoryItem initialize]):
1466         * Misc/WebElementDictionary.mm:
1467         (+[WebElementDictionary initialize]):
1468         * Misc/WebIconDatabase.mm:
1469         (+[WebIconDatabase initialize]):
1470         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1471         (+[WebHostedNetscapePluginView initialize]):
1472         * Plugins/WebBaseNetscapePluginView.mm:
1473         * Plugins/WebBasePluginPackage.mm:
1474         * Plugins/WebNetscapePluginView.mm:
1475         (+[WebNetscapePluginView initialize]):
1476         * WebCoreSupport/WebEditorClient.mm:
1477         (+[WebUndoStep initialize]):
1478         * WebCoreSupport/WebFrameLoaderClient.mm:
1479         * WebView/WebArchive.mm:
1480         (+[WebArchivePrivate initialize]):
1481         * WebView/WebDataSource.mm:
1482         (+[WebDataSourcePrivate initialize]):
1483         * WebView/WebHTMLView.mm:
1484         (+[WebHTMLViewPrivate initialize]):
1485         (+[WebHTMLView initialize]):
1486         * WebView/WebResource.mm:
1487         (+[WebResourcePrivate initialize]):
1488         * WebView/WebTextIterator.mm:
1489         (+[WebTextIteratorPrivate initialize]):
1490         * WebView/WebView.mm:
1491         (+[WebView initialize]):
1492         * WebView/WebViewData.mm:
1493         (+[WebViewPrivate initialize]):
1494         Initialized the main run loop in addition to other initialization.
1495
1496 2012-01-20  Simon Fraser  <simon.fraser@apple.com>
1497
1498         https://bugs.webkit.org/show_bug.cgi?id=76444
1499         
1500         #if ENABLE(CSS_SHADERS) cannot appear in framework headers.
1501         This breaks builds.
1502
1503         * WebView/WebPreferences.mm:
1504         * WebView/WebPreferencesPrivate.h:
1505
1506 2012-01-20  Alexandru Chiculita  <achicu@adobe.com>
1507
1508         CSS Shaders: Add a Settings flag to enable/disable CSS Shaders at runtime
1509         https://bugs.webkit.org/show_bug.cgi?id=76444
1510
1511         Added private WebPreference property called "WebKitCSSCustomFilterEnabled".
1512         
1513         Reviewed by Nikolas Zimmermann.
1514
1515         * WebView/WebPreferenceKeysPrivate.h:
1516         * WebView/WebPreferences.mm:
1517         (+[WebPreferences initialize]):
1518         (-[WebPreferences cssCustomFilterEnabled]):
1519         (-[WebPreferences setCSSCustomFilterEnabled:]):
1520         * WebView/WebPreferencesPrivate.h:
1521         * WebView/WebView.mm:
1522         (-[WebView _preferencesChanged:]):
1523
1524 2012-01-17  Enrica Casucci  <enrica@apple.com>
1525
1526         Missing NSForegroundColorAttributeName should be treated as black instead of transparent.
1527         https://bugs.webkit.org/show_bug.cgi?id=76490
1528         <rdar://problem/9460733>
1529         
1530         Starting with Lion, there is no more NSForegroundColor attribute in the dictionary
1531         if the color matches the default (solid black).
1532         The fix consists in treating the lack of color as solid black instead of transparent as
1533         we did before.
1534
1535         Added a TestWebKitAPI test.
1536         
1537         Reviewed by Darin Adler and Dan Bernstein.
1538
1539         * WebView/WebHTMLView.mm:
1540         (-[WebHTMLView _styleForAttributeChange:]):
1541
1542 2012-01-17  Matthew Delaney  <mdelaney@apple.com>
1543
1544         On post-Lion releases, preserve the Lion behavior where WebKit explicitly calls -setGeometryFlipped on the hosting layer for applications that were linked on Lion or earlier.
1545         <rdar://problem/10692025>
1546
1547         Reviewed by Simon Fraser.
1548
1549         * WebCoreSupport/WebSystemInterface.mm: Init newly added function.
1550         * WebView/WebHTMLView.mm: Added case for post-Lion builds that calls -setGeometryFlipped if the app is linked on or before Lion.
1551
1552 2012-01-17  Enrica Casucci  <enrica@apple.com>
1553
1554         REGRESSION (r101413): Correction panel overlaps misspelled text.
1555         https://bugs.webkit.org/show_bug.cgi?id=74589
1556         <rdar://problem/10585115>
1557
1558         When converting the rectangle from the root view, we need
1559         to take into account the height of the rectangle.
1560         
1561         Reviewed by Anders Carlsson.
1562
1563         * WebView/WebView.mm:
1564         (-[WebView _convertRectFromRootView:]):
1565
1566 2012-01-16  Simon Fraser  <simon.fraser@apple.com>
1567
1568         <rdar://problem/10703228> ASSERTION FAILED: Uncaught exception - Cannot lock focus on image <NSImage 0x1206572a0 Size={0, 0} Reps=( )>, because it is size zero loading techcrunch.com
1569
1570         Reviewed by Anders Carlsson.
1571         
1572         Avoid trying to create image snapshots for zero-sized plugins, because
1573         it causes -[NSView lockFocus] to throw an exception.
1574
1575         * Plugins/WebBaseNetscapePluginView.mm:
1576         (-[WebBaseNetscapePluginView cacheSnapshot]):
1577
1578 2012-01-16  Alexey Proskuryakov  <ap@apple.com>
1579
1580         A follow-up fix for:
1581         A warning is logged to console when typing a bare "/" in Safari address bar
1582         https://bugs.webkit.org/show_bug.cgi?id=76236
1583
1584         <rdar://problem/10702986>        
1585
1586         Reviewed by John Sullivan.
1587
1588         * Misc/WebNSURLExtras.mm: (+[NSURL _web_URLWithData:relativeToURL:]): It's OK to have a
1589         path when there is a base URL.
1590
1591 2012-01-16  Jon Lee  <jonlee@apple.com>
1592
1593         Build fix for r105086.
1594
1595         * Configurations/FeatureDefines.xcconfig:
1596
1597 2012-01-12  Alexey Proskuryakov  <ap@apple.com>
1598
1599         A warning is logged to console when typing a bare "/" in Safari address bar
1600         https://bugs.webkit.org/show_bug.cgi?id=76236
1601
1602         Reviewed by John Sullivan.
1603
1604         * Misc/WebNSURLExtras.mm: (+[NSURL _web_URLWithData:relativeToURL:]): Bail out early for paths.
1605
1606 2012-01-16  Pablo Flouret  <pablof@motorola.com>
1607
1608         Fix compilation errors on build-webkit --debug --no-svg --no-svg-fonts --no-svg-dom-objc-bindings on mac.
1609         https://bugs.webkit.org/show_bug.cgi?id=75865
1610
1611         Reviewed by Hajime Morita.
1612
1613         * WebView/WebFrame.mm:
1614         (-[WebFrame _pauseSVGAnimation:onSMILNode:atTime:]):
1615
1616 2012-01-15  Pablo Flouret  <pablof@motorola.com>
1617
1618         Fix compilation errors on build-webkit --debug --no-video on mac.
1619         https://bugs.webkit.org/show_bug.cgi?id=75867
1620
1621         Reviewed by Philippe Normand.
1622
1623         - WebChromeClient::fullScreenRendererChanged() declaration wrongly guarded
1624           by VIDEO feature instead of FULLSCREEN_API.
1625         - _isAnyMoviePlaying implementation depends on VIDEO.
1626
1627         * WebCoreSupport/WebChromeClient.h:
1628         * WebView/WebFullScreenController.mm:
1629         (-[WebFullScreenController _isAnyMoviePlaying]):
1630
1631 2012-01-11  Beth Dakin  <bdakin@apple.com>
1632
1633         https://bugs.webkit.org/show_bug.cgi?id=75904
1634         WebKit 1: Scrollbar uiStateTransitionProgress requires tracking the mouse all 
1635         the time
1636         -and corresponding-
1637         <rdar://problem/10498816>
1638
1639         Reviewed by Darin Adler.
1640
1641         New ivar trackingAreaForNonKeyWindow stores our NSTrackingArea whenever we 
1642         have one.
1643         * WebView/WebHTMLView.mm:
1644         (-[WebHTMLViewPrivate dealloc]):
1645         (-[WebHTMLViewPrivate clear]):
1646
1647         When we know that mouse movements won't affect anything other than 
1648         scrollbars, call our new function passMouseMovedEventToScrollbars(), 
1649         otherwise we'll call the old mouseMoved().
1650         (mouseEventIsPartOfClickOrDrag):
1651         (-[WebHTMLView _updateMouseoverWithEvent:]):
1652
1653         Make sure not to remove the mouse observer when there are legacy scrollbars.
1654         (-[WebHTMLView removeMouseMovedObserver]):
1655
1656         Set up a tracking area when the window is not key to ensure that the WebView 
1657         gets the relevant events. Remove it when the window is key again so that we 
1658         rely on the existing mechanism.
1659         (-[WebHTMLView windowDidBecomeKey:]):
1660         (-[WebHTMLView windowDidResignKey:]):
1661
1662 2012-01-10  Dan Bernstein  <mitz@apple.com>
1663
1664         Made -[WebHistoryItem copyWithZone:] allocate an object of the same class as the receiver.
1665
1666         Reviewed by Mark Rowe.
1667
1668         * History/WebHistoryItem.mm:
1669         (-[WebHistoryItem copyWithZone:]):
1670
1671 2012-01-10  Chris Marrin  <cmarrin@apple.com>
1672
1673         Wrapped allowedCompositingTriggers in ACCELERATED_COMPOSITING ifdef to make non-accelerated builds work
1674
1675         Unreviewed.
1676
1677         * WebCoreSupport/WebChromeClient.h:
1678
1679 2012-01-10  Chris Marrin  <cmarrin@apple.com>
1680
1681         Turn off the FilterTrigger in WebKit and WebKit2
1682         https://bugs.webkit.org/show_bug.cgi?id=75914
1683
1684         Reviewed by Simon Fraser.
1685
1686         Implement allowedCompositingTriggers to turn on all compositing triggers except FilterTrigger.
1687
1688         * WebCoreSupport/WebChromeClient.h:
1689         (WebChromeClient::allowedCompositingTriggers):
1690
1691 2012-01-10  Dan Bernstein  <mitz@apple.com>
1692
1693         Change -[WebHistoryItem copyWithZone:] to not use NSCopyObject()
1694         https://bugs.webkit.org/show_bug.cgi?id=75980
1695
1696         Reviewed by Mark Rowe.
1697
1698         * History/WebHistoryItem.mm:
1699         (-[WebHistoryItem copyWithZone:]): Replaced NSCopyObject() with
1700         -alloc, -initWithWebCoreHistoryItem:.
1701
1702 2012-01-06  Simon Fraser  <simon.fraser@apple.com>
1703
1704         Mitigate scrollbar differences when running pixel tests
1705         https://bugs.webkit.org/show_bug.cgi?id=67217
1706
1707         Reviewed by Dan Bernstein.
1708         
1709         Make it possible to register a custom NSScroller class, which
1710         the WebDynamicScrollBarsView will use when mock scrollbars are enabled.
1711         
1712         Also ensure that the WebPreferences mock scrollbars preference is
1713         migrated into Settings.
1714
1715         * WebView/WebDynamicScrollBarsView.h:
1716         * WebView/WebDynamicScrollBarsView.mm:
1717         (+[WebDynamicScrollBarsView _horizontalScrollerClass]):
1718         (+[WebDynamicScrollBarsView _verticalScrollerClass]):
1719         (+[WebDynamicScrollBarsView setCustomScrollerClass:]):
1720         * WebView/WebView.mm:
1721         (-[WebView _preferencesChanged:]):
1722
1723 2012-01-05  Dan Bernstein  <mitz@apple.com>
1724
1725         <rdar://problem/10633760> Update copyright strings
1726
1727         Reviewed by Mark Rowe.
1728
1729         * Info.plist:
1730
1731 2012-01-05  Pratik Solanki  <psolanki@apple.com>
1732
1733         WebFrameLoaderClient::userAgent does unnecessary NSString/NSURL conversions
1734         https://bugs.webkit.org/show_bug.cgi?id=75586
1735
1736         Reviewed by Alexey Proskuryakov.
1737
1738         We do unnecessary KURL->NSURL* and String<->NSString* when calling [WebView
1739         userAgentForURL:] from WebFrameLoaderClient::userAgent. Instead we add a separate function,
1740         _userAgentString that returns a WTF::String to make this call faster.
1741
1742         * WebCoreSupport/WebFrameLoaderClient.mm:
1743         (WebFrameLoaderClient::userAgent):
1744         * WebView/WebView.mm:
1745         (-[WebView _userAgentString]):
1746         (-[WebView userAgentForURL:]):
1747         * WebView/WebViewInternal.h:
1748
1749 2012-01-04  Anders Carlsson  <andersca@apple.com>
1750
1751         Ambiguous if-then-else in Source/WebKit/mac/Misc/WebNSPasteboardExtras.mm
1752         https://bugs.webkit.org/show_bug.cgi?id=75447
1753
1754         Reviewed by Brian Weinstein.
1755
1756         Resolve the ambiguity.
1757
1758         * Misc/WebNSPasteboardExtras.mm:
1759         (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:source:]):
1760
1761 2012-01-04  Mihnea Ovidenie  <mihnea@adobe.com>
1762
1763         [Mac]Fix build after changeset 103997
1764         https://bugs.webkit.org/show_bug.cgi?id=75530
1765
1766         Reviewed by Andreas Kling.
1767
1768         * WebView/WebFrame.mm:
1769         * WebView/WebHTMLView.mm:
1770         * WebView/WebPDFView.mm:
1771         * WebView/WebView.mm:
1772
1773 2012-01-03  Jon Lee  <jonlee@apple.com>
1774
1775         Leak of WebNotificationClient when page is destroyed
1776         https://bugs.webkit.org/show_bug.cgi?id=74980
1777         <rdar://problem/10611231>
1778
1779         Reviewed by Mark Rowe.
1780
1781         * WebCoreSupport/WebNotificationClient.h:
1782         * WebCoreSupport/WebNotificationClient.mm:
1783         (WebNotificationClient::notificationControllerDestroyed): Remove the instance.
1784
1785 2012-01-02  Dan Bernstein  <mitz@apple.com>
1786
1787         [mac] Remove -[WebView setHoverFeedbackSuspended:]
1788         https://bugs.webkit.org/show_bug.cgi?id=75406
1789
1790         Reviewed by Tim Hatcher.
1791
1792         * WebView/WebHTMLView.mm:
1793         (-[WebHTMLView _updateMouseoverWithEvent:]): Removed check for suspended hover updates.
1794         * WebView/WebHTMLViewInternal.h: Removed -_hoverFeedbackSuspendedChanged.
1795         * WebView/WebView.mm:
1796         (-[WebView setHoverFeedbackSuspended:]): Left empty implementation to support versions of
1797         Safari that call this.
1798         (-[WebView isHoverFeedbackSuspended]): Left implementation that always returns NO to support
1799         versions of Safari that call this.
1800         * WebView/WebViewData.h: Removed hoverFeedbackSuspended ivar.
1801         * WebView/WebViewPrivate.h: Removed method definitions.
1802
1803 2011-12-31  Dan Bernstein  <mitz@apple.com>
1804
1805         WebKit/mac changes for: REGRESSION (WebKit2): Cursor, hover states not updated when page scrolls under stationary mouse pointer
1806         https://bugs.webkit.org/show_bug.cgi?id=75405
1807
1808         Reviewed by Anders Carlsson.
1809
1810         Removed the WebKit/mac mechanism for dispatching fake mouse moved events
1811         when an HTML frame scrolls, since FrameView now does this.
1812
1813         * WebView/WebHTMLView.mm:
1814         (-[WebHTMLViewPrivate dealloc]): Removed an assertion about a removed ivar.
1815         (-[WebHTMLView _updateMouseoverWithFakeEvent]): Removed call to
1816         -_cancelUpdateMouseoverTimer.
1817         (-[WebHTMLView _frameOrBoundsChanged]): Removed code to schedule a timer
1818         for dispatching a mouse moved event on scroll.
1819         (-[WebHTMLView close]): Removed call to _cancelUpdateMouseoverTimer.
1820         (-[WebHTMLView viewWillMoveToWindow:]): Ditto.
1821         (-[WebHTMLView mouseDown:]): Ditto.
1822
1823 2011-12-23  Ryosuke Niwa  <rniwa@webkit.org>
1824
1825         Chromium Mac build fix.
1826
1827         * WebCoreSupport/WebSystemInterface.mm:
1828         (InitWebCoreSystemInterface):
1829
1830 2011-12-21  Sam Weinig  <sam@webkit.org>
1831
1832         Start extracting platform specific bits out of PlatformEvents
1833         https://bugs.webkit.org/show_bug.cgi?id=75063
1834
1835         Reviewed by Anders Carlsson.
1836
1837         * WebCoreSupport/WebSystemInterface.mm:
1838         (InitWebCoreSystemInterface):
1839         * WebView/WebFrame.mm:
1840         * WebView/WebHTMLView.mm:
1841         (-[WebHTMLView menuForEvent:]):
1842         (-[WebHTMLView acceptsFirstMouse:]):
1843         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
1844         (currentKeyboardEvent):
1845         (-[WebHTMLView flagsChanged:]):
1846         * WebView/WebPDFView.mm:
1847         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1848         * WebView/WebView.mm:
1849
1850 2011-12-21  Timothy Hatcher  <timothy@apple.com>
1851
1852         Web Inspector: suppress incremental rendering and use application chrome mode
1853
1854         https://webkit.org/b/75026
1855
1856         Reviewed by Joseph Pecoraro.
1857
1858         * WebCoreSupport/WebInspectorClient.mm:
1859         (-[WebInspectorWindowController init]): Sort the preferences, remove the Leopard font family setting,
1860         set suppress incremental rendering and use application chrome mode.
1861
1862 2011-12-20  Pavel Feldman  <pavel.feldman@gmail.com>
1863
1864         Web Inspector: reproducible crash after closing web inspector and browser window  (iCab)
1865         https://bugs.webkit.org/show_bug.cgi?id=74255
1866
1867         Reviewed by Yury Semikhatsky.
1868
1869         * WebCoreSupport/WebInspectorClient.h:
1870         * WebCoreSupport/WebInspectorClient.mm:
1871         (WebInspectorClient::bringFrontendToFront):
1872         (-[WebInspectorWindowController destroyInspectorView:]):
1873
1874 2011-12-19  Eric Carlson  <eric.carlson@apple.com>
1875
1876         Enable <track> for Mac build
1877         https://bugs.webkit.org/show_bug.cgi?id=74838
1878
1879         Reviewed by Darin Adler.
1880
1881         * Configurations/FeatureDefines.xcconfig:
1882
1883 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
1884
1885         Rename registerCommandFor(Undo|Redo) to register(Undo|Redo)Step
1886         https://bugs.webkit.org/show_bug.cgi?id=74748
1887
1888         Reviewed by Eric Seidel.
1889
1890         * WebCoreSupport/WebEditorClient.h:
1891         * WebCoreSupport/WebEditorClient.mm:
1892         (WebEditorClient::registerUndoOrRedoStep):
1893         (WebEditorClient::registerUndoStep):
1894         (WebEditorClient::registerRedoStep):
1895
1896 2011-12-16  Sam Weinig  <sam@webkit.org>
1897
1898         Give PlatformEvents a base class
1899         https://bugs.webkit.org/show_bug.cgi?id=74685
1900
1901         Reviewed by Anders Carlsson.
1902
1903         Add a base class for PlatformMouseEvent, PlatformKeyboardEvent, PlatformWheelEvent
1904         and PlatformGestureEvent and move Type enumeration and modifiers down to it.
1905
1906         * WebView/WebFrame.mm:
1907         (-[WebFrame _dragSourceEndedAt:operation:]):
1908         * WebView/WebHTMLView.mm:
1909         (currentKeyboardEvent):
1910         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
1911         * WebView/WebPDFView.mm:
1912         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1913
1914 2011-12-16  Simon Fraser  <simon.fraser@apple.com>
1915
1916         Fix a #elsif fumble in my earlier commit.
1917
1918         * WebView/WebHTMLView.mm:
1919         (-[WebHTMLView attachRootLayer:]):
1920
1921 2011-12-16  Ryosuke Niwa  <rniwa@webkit.org>
1922
1923         Only EditCommandComposition should implement unapply and reapply
1924         https://bugs.webkit.org/show_bug.cgi?id=74490
1925
1926         Reviewed by Eric Seidel.
1927
1928         * WebCoreSupport/WebEditorClient.h:
1929         * WebCoreSupport/WebEditorClient.mm:
1930         (-[WebUndoStep initWithUndoStep:]):
1931         (-[WebUndoStep dealloc]):
1932         (+[WebUndoStep stepWithUndoStep:]):
1933         (-[WebUndoStep step]):
1934         (-[WebEditorUndoTarget undoEditing:]):
1935         (-[WebEditorUndoTarget redoEditing:]):
1936         (WebEditorClient::registerCommandForUndoOrRedo):
1937         (WebEditorClient::registerCommandForUndo):
1938         (WebEditorClient::registerCommandForRedo):
1939
1940 2011-12-16  Simon Fraser  <simon.fraser@apple.com>
1941
1942         <rdar://problem/10589427> Avoid calling -setGeometryFlipped ourselves on the layer hosting view's layer
1943
1944         Reviewed by Sam Weinig.
1945         
1946         Now that we're using a flipped view to host the compositing layers,
1947         we should not set geometryFlipped on the root layer ourselves.
1948
1949         * WebView/WebHTMLView.mm:
1950         (-[WebHTMLView attachRootLayer:]):
1951
1952 2011-12-16  Mark Hahnenberg  <mhahnenberg@apple.com>
1953
1954         De-virtualize destructors
1955         https://bugs.webkit.org/show_bug.cgi?id=74331
1956
1957         Reviewed by Geoffrey Garen.
1958
1959         * Plugins/Hosted/ProxyRuntimeObject.h: Remove empty virtual destructor.
1960         * Plugins/Hosted/ProxyRuntimeObject.mm:
1961
1962 2011-12-14  Ryosuke Niwa  <rniwa@webkit.org>
1963
1964         Mac build fix after r102874.
1965
1966         * WebCoreSupport/WebChromeClient.mm:
1967
1968 2011-12-14  Jing Zhao  <jingzhao@chromium.org>
1969
1970         Opening two popup menus by dispatchEvent() makes problems.
1971         https://bugs.webkit.org/show_bug.cgi?id=73304
1972
1973         Reviewed by Kent Tamura.
1974
1975         * WebCoreSupport/WebChromeClient.h: Overrides hasOpenedPopup().
1976         * WebCoreSupport/WebChromeClient.mm:
1977         (WebChromeClient::hasOpenedPopup): Not implemented.
1978
1979 2011-12-14  Michael Saboff  <msaboff@apple.com>
1980
1981         Mac WebScriptDebugger crashes beneath sourceParsed()
1982         https://bugs.webkit.org/show_bug.cgi?id=74564
1983
1984         Reviewed by Gavin Barraclough.
1985
1986         * WebView/WebScriptDebugger.mm:
1987         (toNSString): Change to use ->characters() method to
1988         actually get characters for string conversion.
1989
1990 2011-12-14  Hajime Morrita  <morrita@chromium.org>
1991
1992         JS_INLINE and WTF_INLINE should be visible from WebCore
1993         https://bugs.webkit.org/show_bug.cgi?id=73191
1994
1995         Reviewed by Kevin Ollivier.
1996
1997         Removed macro definitions which is now provided by Platform.h
1998
1999         * WebKitPrefix.h:
2000
2001 2011-12-13  Jon Lee  <jonlee@apple.com>
2002
2003         Enable notifications on Mac.
2004
2005         Reviewed by Sam Weinig.
2006
2007         * Configurations/FeatureDefines.xcconfig:
2008
2009 2011-12-12  Ryosuke Niwa  <rniwa@webkit.org>
2010
2011         WebKit code shouldn't be calling applyCommand directly
2012         https://bugs.webkit.org/show_bug.cgi?id=74337
2013
2014         Reviewed by Darin Adler.
2015
2016         * WebView/WebFrame.mm:
2017         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
2018
2019 2011-12-12  Brady Eidson  <beidson@apple.com>
2020
2021         Page cache should support pages with plugins.
2022         <rdar://problem/5190122> and https://bugs.webkit.org/show_bug.cgi?id=13634
2023
2024         Expose a WebKit preference for the page cache supporting plugins (on by default).
2025
2026         Reviewed by Anders Carlsson.
2027
2028         * WebView/WebPreferenceKeysPrivate.h:
2029
2030         * WebView/WebPreferences.mm:
2031         (-[WebPreferences pageCacheSupportsPlugins]):
2032         (-[WebPreferences setPageCacheSupportsPlugins:]):
2033         * WebView/WebPreferencesPrivate.h:
2034
2035         * WebView/WebView.mm:
2036         (-[WebView _preferencesChanged:]):
2037
2038 2011-12-12  Dan Bernstein  <mitz@apple.com>
2039
2040         <rdar://problem/10328474> Text highlight changes to gray selection color when menu extra is shown
2041
2042         Reviewed by John Sullivan.
2043
2044         * WebView/WebView.mm:
2045         (-[WebView _updateActiveState]): Changed to use -[NSWindow _hasKeyAppearance] instead
2046         of -isKeyWindow. The former also returns YES when a menu extra is open.
2047         (-[WebView addWindowObserversForWindow:]): Removed code to observe
2048         NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification.
2049         (-[WebView removeWindowObservers]): Removed code to stop observing the above.
2050         (-[WebView _windowChangedKeyState]): Overridden this to call _updateActiveState.
2051         This is called when the result of -_hasKeyAppearance changes.
2052         (-[WebView _windowWillOrderOnScreen:]): Removed call to _updateActiveState,
2053         previously needed for popovers, because _windowChangedKeyState is invoked
2054         at the right time for them.
2055         (-[WebView _windowWillOrderOffScreen:]): Ditto.
2056
2057 2011-12-07  Mark Rowe  <mrowe@apple.com>
2058
2059         Fix the 32-bit build.
2060
2061         Ignore some warnings that only occur in 32-bit.
2062
2063         * Plugins/WebNetscapePluginPackage.mm:
2064
2065 2011-12-07  Mary Wu  <mary.wu@torchmobile.com.cn>
2066
2067         Change function name InitializeLoggingChannelsIfNecessary to follow coding style guideline
2068         https://bugs.webkit.org/show_bug.cgi?id=73986
2069
2070         Reviewed by Kenneth Rohde Christiansen.
2071
2072         * WebView/WebView.mm:
2073         (-[WebView _commonInitializationWithFrameName:groupName:]):
2074
2075 2011-12-06  Alexey Proskuryakov  <ap@apple.com>
2076
2077         REGRESSION (WebKit2): Kill ring is not cleared when selection changes
2078         https://bugs.webkit.org/show_bug.cgi?id=73888
2079         <rdar://problem/10532310>
2080
2081         Reviewed by Mark Rowe.
2082
2083         * WebView/WebHTMLView.mm:
2084         (-[WebHTMLView becomeFirstResponder]): Added a FIXME comment.
2085         (-[WebHTMLView _selectionChanged]): Moved the code to clear kill ring to WebCore. The rest
2086         of kill ring implementation is there, so it makes no sense to have this call in WebKits.
2087
2088 2011-12-05  Anders Carlsson  <andersca@apple.com>
2089
2090         Make LayerFlushSchedulerClient::flushLayers indicate whether the flush was successful or not
2091         https://bugs.webkit.org/show_bug.cgi?id=73862
2092
2093         Reviewed by Andy Estes.
2094
2095         Remove the call to LayerFlushScheduler::invalidate and return true instead. Return false for the cases
2096         where we don't want the layer flush scheduler to be invalidated.
2097
2098         * WebView/WebView.mm:
2099         (LayerFlushController::flushLayers):
2100         * WebView/WebViewData.h:
2101
2102 2011-12-05  Eric Carlson  <eric.carlson@apple.com>
2103
2104         Add WebKit preferences for text track settings
2105         https://bugs.webkit.org/show_bug.cgi?id=73721
2106
2107         Reviewed by John Sullivan.
2108
2109         * WebView/WebPreferenceKeysPrivate.h: Added #define for shouldDisplaySubtitles, shouldDisplayCaptions, 
2110         and shouldDisplayTextDescriptions properties.
2111
2112         * WebView/WebPreferences.mm:
2113         (+[WebPreferences initialize]): Initialize new preferences to NO.
2114         (-[WebPreferences setShouldDisplaySubtitles:]): Added.
2115         (-[WebPreferences shouldDisplaySubtitles]): Ditto.
2116         (-[WebPreferences setShouldDisplayCaptions:]): Ditto.
2117         (-[WebPreferences shouldDisplayCaptions]): Ditto.
2118         (-[WebPreferences setShouldDisplayTextDescriptions:]): Ditto.
2119         (-[WebPreferences shouldDisplayTextDescriptions]): Ditto.
2120         * WebView/WebPreferencesPrivate.h:
2121
2122         * WebView/WebView.mm:
2123         (-[WebView _preferencesChanged:]): Updates WebCore settings from WebKit prefs.
2124
2125 2011-12-03  Dan Bernstein  <mitz@apple.com>
2126
2127         <rdar://problem/10523721> Crash at WebCore::SubresourceLoader::releaseResources
2128         Reviewed by Darin Adler.
2129
2130         * WebView/WebView.mm:
2131         (-[WebView _removeObjectForIdentifier:]): Changed the CFRelease(self) into
2132         a WebCFAutorelease(self). This prevents re-entry into this method due to
2133         the WebView closing and canceling all subresource loads, including the
2134         one we have just removed.
2135
2136 2011-12-02  David Levin  <levin@chromium.org>
2137
2138         Rename WTF class from TemporarilyChange to TemporaryChange.
2139         https://bugs.webkit.org/show_bug.cgi?id=73479
2140
2141         Reviewed by Eric Seidel.
2142
2143         * ForwardingHeaders/wtf/TemporarilyChange.h: Removed.
2144         * ForwardingHeaders/wtf/TemporaryChange.h: Added.
2145
2146 2011-12-02  Simon Fraser  <simon.fraser@apple.com>
2147
2148         <rdar://problem/10423627> Layers are flipped in WebKit1 views
2149
2150         Reviewed by Sam Weinig.
2151         
2152         Host the compositing layers in an NSView which is flipped, which helps AppKit
2153         get the geometry right in some situations.
2154
2155         * WebView/WebHTMLView.mm:
2156         (-[WebLayerHostingFlippedView isFlipped]):
2157         (-[WebHTMLView attachRootLayer:]):
2158
2159 2011-12-02  Hajime Morrita  <morrita@chromium.org>
2160
2161         Unreviewed, rolling out r101751 and r101775.
2162         http://trac.webkit.org/changeset/101751
2163         http://trac.webkit.org/changeset/101775
2164         https://bugs.webkit.org/show_bug.cgi?id=73191
2165
2166         breaks Windows build
2167
2168         * WebKitPrefix.h:
2169
2170 2011-12-01  Hajime Morrita  <morrita@chromium.org>
2171
2172         JS_INLINE and WTF_INLINE should be visible from WebCore
2173         https://bugs.webkit.org/show_bug.cgi?id=73191
2174
2175         Reviewed by Kevin Ollivier.
2176
2177         Removed macro definitions which is now provided by Platform.h
2178
2179         * WebKitPrefix.h:
2180
2181 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
2182
2183         Remove an unneeded argument from FrameLoaderClient::download
2184         https://bugs.webkit.org/show_bug.cgi?id=73486
2185
2186         Reviewed by Andreas Kling.
2187
2188         * WebCoreSupport/WebFrameLoaderClient.h:
2189         * WebCoreSupport/WebFrameLoaderClient.mm:
2190         (WebFrameLoaderClient::download):
2191         Updated for the change.
2192
2193 2011-11-30  Dan Bernstein  <mitz@apple.com>
2194
2195         WebKit/mac part of: Allow the length of a page along the pagination axis to differ from the length of the view
2196         https://bugs.webkit.org/show_bug.cgi?id=73476
2197
2198         Reviewed by Anders Carlsson.
2199
2200         * WebView/WebView.mm:
2201         (-[WebView _setPageLength:]): Added this accessor.
2202         (-[WebView _pageLength]): Ditto.
2203         * WebView/WebViewPrivate.h:
2204
2205 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
2206
2207         Download page URL should be set by WebCore
2208         https://bugs.webkit.org/show_bug.cgi?id=73358
2209
2210         Reviewed by Darin Adler.
2211
2212         * WebCoreSupport/WebFrameLoaderClient.h: Removed setOriginalURLForDownload, which is now
2213         in WebCore.
2214
2215         * WebCoreSupport/WebFrameLoaderClient.mm:
2216         (WebFrameLoaderClient::download): There is no need to set original URL post factum any more.
2217         (WebFrameLoaderClient::startDownload): Ditto.
2218
2219 2011-11-29  David Levin  <levin@chromium.org>
2220
2221         Add a way to revert a variable to its previous value after leaving a scope.
2222         https://bugs.webkit.org/show_bug.cgi?id=73371
2223
2224         Reviewed by Adam Barth.
2225
2226         * ForwardingHeaders/wtf/TemporarilyChange.h: Added.
2227
2228 2011-11-29  Jessie Berlin  <jberlin@apple.com>
2229
2230         WKKeyValueStorageManagerGetKeyValueStorageOrigins may not report the correct list of origins
2231         the first time it is called.
2232         https://bugs.webkit.org/show_bug.cgi?id=73374 (<rdar://problem/10196057>)
2233
2234         Reviewed by Brady Eidson.
2235
2236         * Storage/WebStorageTrackerClient.h:
2237         * Storage/WebStorageTrackerClient.mm:
2238         (WebStorageTrackerClient::didFinishLoadingOrigins):
2239
2240 2011-11-15  Anders Carlsson  <andersca@apple.com>
2241
2242         DragClient::dragSourceActionMaskForPoint should use root view coordinates
2243         https://bugs.webkit.org/show_bug.cgi?id=72409
2244
2245         Reviewed by Sam Weinig.
2246
2247         * WebCoreSupport/WebDragClient.mm:
2248         (WebDragClient::dragSourceActionMaskForPoint):
2249         Use -[WebView _convertPointFromRootView:] to convert the point to the web view coordinate system.
2250
2251 2011-11-15  Anders Carlsson  <andersca@apple.com>
2252
2253         EditorClient::showCorrectionPanel should pass the string bounding box in root view coordinates
2254         https://bugs.webkit.org/show_bug.cgi?id=72408
2255
2256         Reviewed by Sam Weinig.
2257
2258         * WebCoreSupport/CorrectionPanel.mm:
2259         (CorrectionPanel::show):
2260         Convert the bounding rect to web view coordinates.
2261
2262         * WebView/WebView.mm:
2263         (-[WebView _convertPointFromRootView:]):
2264         (-[WebView _convertRectFromRootView:]):
2265         * WebView/WebViewInternal.h:
2266         Add helper methods for converting from root view coordinates to web view coordinates.
2267
2268 2011-11-29  Roland Steiner  <rolandsteiner@chromium.org>
2269
2270         <style scoped>: add ENABLE(STYLE_SCOPED) flag to WebKit
2271         https://bugs.webkit.org/show_bug.cgi?id=72848
2272
2273         Reviewed by Dimitri Glazkov.
2274
2275         * Configurations/FeatureDefines.xcconfig:
2276
2277 2011-11-28  Jon Lee  <jonlee@apple.com>
2278
2279         Create skeleton framework for notifications support in WK2
2280         https://bugs.webkit.org/show_bug.cgi?id=73253
2281         <rdar://problem/10356943>
2282
2283         Reviewed by Sam Weinig.
2284
2285         * Configurations/FeatureDefines.xcconfig: Split out ENABLE_NOTIFICATIONS based on platform.
2286
2287         * WebCoreSupport/WebNotificationClient.h: Added.
2288         (WebNotificationClient::webView):
2289         * WebCoreSupport/WebNotificationClient.mm: Added. Implemented as stubs for now.
2290         (WebNotificationClient::WebNotificationClient):
2291         (WebNotificationClient::show):
2292         (WebNotificationClient::cancel):
2293         (WebNotificationClient::notificationObjectDestroyed):
2294         (WebNotificationClient::requestPermission):
2295         (WebNotificationClient::cancelRequestsForPermission):
2296         (WebNotificationClient::checkPermission):
2297         * WebView/WebView.mm: Set PageClient's notification client to an instance of this stubbed class.
2298
2299 2011-11-28  Adam Roben  <aroben@apple.com>
2300
2301         Properly retain the OS X version string
2302
2303         Fixes <http://webkit.org/b/73214> REGRESSION (r101215): Crash on launch beneath +[WebView
2304         _standardUserAgentWithApplicationName:]
2305
2306         Reviewed by Antti Koivisto.
2307
2308         * WebView/WebView.mm:
2309         (createMacOSXVersionString): Retain the string we're returning, since this function is
2310         supposed to return an owning reference to the caller.
2311
2312 2011-11-28  Hayato Ito  <hayato@chromium.org>
2313
2314         Fix chromium canary build after r101215.
2315         Unreviewed. Build fix.
2316
2317         * WebCoreSupport/WebSystemInterface.mm:
2318         (InitWebCoreSystemInterface):
2319
2320 2011-11-27  Mark Rowe  <mrowe@apple.com>
2321
2322         <http://webkit.org/b/72665> Switch to a more modern approach to retrieving the OS marketing version
2323
2324         Reviewed by Dan Bernstein.
2325
2326         * WebCoreSupport/WebSystemInterface.mm:
2327         (InitWebCoreSystemInterface): Set up wkGetMacOSXVersionString.
2328         * WebView/WebView.mm:
2329         (createMacOSXVersionString): Use WKGetMacOSXVersionString.
2330
2331 2011-11-26  Pavel Feldman  <pfeldman@google.com>
2332
2333         Web Inspector: remove disconnectFromBackend from the protocol.
2334         https://bugs.webkit.org/show_bug.cgi?id=73127
2335
2336         Reviewed by Yury Semikhatsky.
2337
2338         * WebCoreSupport/WebInspectorClient.h:
2339         * WebCoreSupport/WebInspectorClient.mm:
2340         (WebInspectorClient::inspectorDestroyed):
2341         (WebInspectorClient::closeInspectorFrontend):
2342
2343 2011-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
2344
2345         Unreviewed, rolling out r101193.
2346         http://trac.webkit.org/changeset/101193
2347         https://bugs.webkit.org/show_bug.cgi?id=73158
2348
2349         Breaks Windows and Qt minimal. (Requested by pfeldman on
2350         #webkit).
2351
2352         * WebCoreSupport/WebInspectorClient.h:
2353         * WebCoreSupport/WebInspectorClient.mm:
2354         (WebInspectorClient::inspectorDestroyed):
2355
2356 2011-11-26  Pavel Feldman  <pfeldman@google.com>
2357
2358         Web Inspector: remove disconnectFromBackend from the protocol.
2359         https://bugs.webkit.org/show_bug.cgi?id=73127
2360
2361         Reviewed by Yury Semikhatsky.
2362
2363         * WebCoreSupport/WebInspectorClient.h:
2364         * WebCoreSupport/WebInspectorClient.mm:
2365         (WebInspectorClient::inspectorDestroyed):
2366         (WebInspectorClient::closeInspectorFrontend):
2367
2368 2011-11-22  Pavel Feldman  <pfeldman@google.com>
2369
2370         Web Inspector: remove Inspector::bringToFront from the protocol.
2371         https://bugs.webkit.org/show_bug.cgi?id=72937
2372
2373         Reviewed by Yury Semikhatsky.
2374
2375         * WebCoreSupport/WebInspectorClient.h:
2376         * WebCoreSupport/WebInspectorClient.mm:
2377         (WebInspectorClient::openInspectorFrontend):
2378         (WebInspectorClient::bringFrontendToFront):
2379
2380 2011-11-21  Mark Rowe  <mrowe@apple.com>
2381
2382         Fix the SnowLeopard build.
2383
2384         * Misc/WebNSFileManagerExtras.mm: Forward-declare DADiskCreateFromVolumePath on SnowLeopard as it was
2385         not yet declared in a public header.
2386
2387 2011-11-20  Mark Rowe  <mrowe@apple.com>
2388
2389         <http://webkit.org/b/72661> Switch to a more modern approach to retrieving the startup volume name
2390
2391         Use the DiskArbitration framework to retrieve the name of the startup volume rather than using Carbon
2392         File Manager APIs.
2393
2394         Reviewed by Dan Bernstein.
2395
2396         * Misc/WebNSFileManagerExtras.mm:
2397         (-[NSFileManager _webkit_startupVolumeName]): Retrieve a DADiskRef for the startup volume and copy
2398         the volume name from its description dictionary.
2399
2400 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
2401
2402         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
2403         https://bugs.webkit.org/show_bug.cgi?id=62985
2404
2405         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
2406         methods for plumbing the menu action handlers through the WebKit and WebCore.
2407         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
2408         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
2409         WebKit/win and WebKit2 to follow.
2410
2411         Reviewed by Yury Semikhatsky.
2412
2413         * WebCoreSupport/WebInspectorClient.mm:
2414         (-[WebInspectorWindowController destroyInspectorView:]):
2415         * WebInspector/WebInspector.mm:
2416         (-[WebInspector showWindow]):
2417         (-[WebInspector show:]):
2418         (-[WebInspector showConsole:]):
2419         (-[WebInspector isDebuggingJavaScript]):
2420         (-[WebInspector toggleDebuggingJavaScript:]):
2421         (-[WebInspector startDebuggingJavaScript:]):
2422         (-[WebInspector stopDebuggingJavaScript:]):
2423         (-[WebInspector isProfilingJavaScript]):
2424         (-[WebInspector toggleProfilingJavaScript:]):
2425         (-[WebInspector startProfilingJavaScript:]):
2426         (-[WebInspector stopProfilingJavaScript:]):
2427         (-[WebInspector isJavaScriptProfilingEnabled]):
2428         (-[WebInspector setJavaScriptProfilingEnabled:]):
2429         (-[WebInspector isTimelineProfilingEnabled]):
2430         (-[WebInspector setTimelineProfilingEnabled:]):
2431         (-[WebInspector setFrontend:]):
2432         (-[WebInspector releaseFrontend]):
2433         (-[WebInspector showWindow:]):
2434         * WebInspector/WebInspectorFrontend.h:
2435         * WebInspector/WebInspectorFrontend.mm:
2436         (-[WebInspectorFrontend isDebuggingEnabled]):
2437         (-[WebInspectorFrontend setDebuggingEnabled:]):
2438         (-[WebInspectorFrontend isProfilingJavaScript]):
2439         (-[WebInspectorFrontend startProfilingJavaScript]):
2440         (-[WebInspectorFrontend stopProfilingJavaScript]):
2441         (-[WebInspectorFrontend isJavaScriptProfilingEnabled]):
2442         (-[WebInspectorFrontend setJavaScriptProfilingEnabled:]):
2443         (-[WebInspectorFrontend isTimelineProfilingEnabled]):
2444         (-[WebInspectorFrontend setTimelineProfilingEnabled:]):
2445         * WebInspector/WebInspectorPrivate.h:
2446
2447 2011-11-21  Jochen Eisinger  <jochen@chromium.org>
2448
2449         Implement Meta referrer
2450         https://bugs.webkit.org/show_bug.cgi?id=72674
2451
2452         Reviewed by Adam Barth.
2453
2454         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2455         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
2456         * Plugins/WebNetscapePluginStream.mm:
2457         (WebNetscapePluginStream::WebNetscapePluginStream):
2458
2459 2011-10-17  Antonio Gomes  <agomes@rim.com>
2460
2461         Pass a Frame* parameter in EditorClient::respondToChangedSelection
2462         https://bugs.webkit.org/show_bug.cgi?id=70248
2463
2464         Reviewed by Ryosuke Niwa.
2465
2466         * WebCoreSupport/WebEditorClient.h:
2467         * WebCoreSupport/WebEditorClient.mm: Make use of the newly added Frame* parameter.
2468         (WebEditorClient::respondToChangedSelection):
2469
2470 2011-11-17  Mark Rowe  <mrowe@apple.com>
2471
2472         <http://webkit.org/b/72646> Disable deprecation warnings around code where we cannot easily
2473         switch away from the deprecated APIs.
2474
2475         Reviewed by Sam Weinig.
2476
2477         * Plugins/WebBasePluginPackage.mm:
2478         * Plugins/WebNetscapePluginPackage.mm:
2479         (-[WebNetscapePluginPackage _tryLoad]):
2480
2481 2011-11-18  Anton D'Auria  <adauria@apple.com>
2482
2483         bool WebChromeClient::shouldInterruptJavaScript casts pointer to bool and always returns true
2484         https://bugs.webkit.org/show_bug.cgi?id=72568
2485
2486         Reviewed by David Kilzer.
2487
2488         WebChromeClient::shouldInterruptJavaScript called CallUIDelegate, which used an id
2489         as the return value, which was then cast to a bool and always returned true. This
2490         patch uses CallUIDelegateReturningBoolean instead of CallUIDelegate, with the default
2491         return value of NO.
2492
2493         * WebCoreSupport/WebChromeClient.mm:
2494         (WebChromeClient::shouldInterruptJavaScript):
2495
2496 2011-11-16  Dan Bernstein  <mitz@apple.com>
2497
2498         WebKit/mac part of <rdar://problem/10262242> Add API for paginated display
2499         https://bugs.webkit.org/show_bug.cgi?id=72537
2500
2501         Reviewed by Anders Carlsson.
2502
2503         * WebView/WebView.mm:
2504         (-[WebView _setPaginationMode:]): Added this accessor.
2505         (-[WebView _paginationMode]): Ditto.
2506         (-[WebView _setGapBetweenPages:]): Ditto.
2507         (-[WebView _gapBetweenPages]): Ditto.
2508         (-[WebView _pageCount]): Ditto.
2509         * WebView/WebViewPrivate.h: Defined WebPaginationMode enum and values.
2510
2511 2011-11-15  Andy Estes  <aestes@apple.com>
2512
2513         Consolidate the logic that creates run loop observers for flushing layer tree changes to CoreAnimation
2514         https://bugs.webkit.org/show_bug.cgi?id=72106
2515
2516         Reviewed by Anders Carlsson.
2517
2518         Remove code that schedules layer flushes and use LayerFlushScheduler instead.
2519
2520         * WebView/WebView.mm:
2521         (-[WebView _close]): Invalidate the run loop observer and destroy the
2522         LayerFlushController.
2523         (LayerFlushController::flushLayers): Perform the work that
2524         layerSyncRunLoopObserverCallBack used to do.
2525         (-[WebView _scheduleCompositingLayerSync]): If layerFlushController has
2526         yet to be created, create it, then schedule a layer flush.
2527         * WebView/WebViewData.h:
2528         (LayerFlushController::create): Create a LayerFlushController that
2529         implements the LayerFlushSchedulerClient interface and contains a
2530         LayerFlushScheduler with itself as the client.
2531         * WebView/WebViewData.mm:
2532         (LayerFlushController::scheduleLayerFlush):
2533         (LayerFlushController::invalidateObserver):
2534         (LayerFlushController::LayerFlushController):
2535
2536 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
2537
2538         Rename ReferrerPolicy to clarify its meaning
2539         https://bugs.webkit.org/show_bug.cgi?id=72420
2540
2541         Reviewed by Nate Chapin.
2542
2543         * WebView/WebPDFView.mm:
2544         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2545
2546 2011-11-15  Anders Carlsson  <andersca@apple.com>
2547
2548         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
2549         https://bugs.webkit.org/show_bug.cgi?id=72397
2550
2551         Reviewed by Dan Bernstein.
2552
2553         * WebCoreSupport/WebChromeClient.h:
2554         * WebCoreSupport/WebChromeClient.mm:
2555         (WebChromeClient::screenToRootView):
2556         (WebChromeClient::rootViewToScreen):
2557
2558 2011-11-14  Anders Carlsson  <andersca@apple.com>
2559
2560         HostWindow invalidation functions should use root view coordinates
2561         https://bugs.webkit.org/show_bug.cgi?id=72338
2562
2563         Reviewed by Dan Bernstein.
2564
2565         * WebCoreSupport/WebChromeClient.h:
2566         * WebCoreSupport/WebChromeClient.mm:
2567         (WebChromeClient::invalidateRootView):
2568         (WebChromeClient::invalidateContentsAndRootView):
2569         (WebChromeClient::invalidateContentsForSlowScroll):
2570
2571 2011-11-14  Julien Chaffraix  <jchaffraix@webkit.org>
2572
2573         Add --css-grid-layout to build-webkit and the build systems
2574         https://bugs.webkit.org/show_bug.cgi?id=72320
2575
2576         Reviewed by Ojan Vafai.
2577
2578         * Configurations/FeatureDefines.xcconfig:
2579
2580 2011-11-14  Tony Chang  <tony@chromium.org>
2581
2582         Remove the CSS3_FLEXBOX compile time flag and enable on all ports
2583         https://bugs.webkit.org/show_bug.cgi?id=72196
2584
2585         Reviewed by Ojan Vafai.
2586
2587         * Configurations/FeatureDefines.xcconfig:
2588
2589 2011-11-07  Adam Barth  <abarth@webkit.org>
2590
2591         Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp
2592         https://bugs.webkit.org/show_bug.cgi?id=71755
2593
2594         Reviewed by Eric Seidel.
2595
2596         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2597         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
2598         * Plugins/WebNetscapePluginStream.mm:
2599         (WebNetscapePluginStream::WebNetscapePluginStream):
2600         * WebView/WebView.mm:
2601         (-[WebView _commonInitializationWithFrameName:groupName:]):
2602         (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
2603         (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
2604         (+[WebView _resetOriginAccessWhitelists]):
2605
2606 2011-11-08  Joseph Pecoraro  <pecoraro@apple.com>
2607
2608         Move NSRange / DOMRange functions back to WebFrameInternal
2609         https://bugs.webkit.org/show_bug.cgi?id=71844
2610
2611         Reviewed by Alexey Proskuryakov.
2612
2613         * WebView/WebFrame.mm:
2614         (-[WebFrame _convertNSRangeToDOMRange:]):
2615         (-[WebFrame _convertDOMRangeToNSRange:]):
2616         * WebView/WebFrameInternal.h:
2617         * WebView/WebFramePrivate.h:
2618
2619 2011-11-08  Michael Saboff  <msaboff@apple.com>
2620
2621         Towards 8 Bit Strings: Templatize JSC::Parser class by Lexer type
2622         https://bugs.webkit.org/show_bug.cgi?id=71761
2623
2624         Changed WKPCEvaluate() to use emptyString() when the source is
2625         zero length.
2626
2627         Reviewed by Gavin Barraclough.
2628
2629         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2630         (WKPCEvaluate):
2631
2632 2011-11-08  Beth Dakin  <bdakin@apple.com>
2633
2634         https://bugs.webkit.org/show_bug.cgi?id=71856
2635         WebKit should use new NSWindowDidChangeBackingPropertiesNotification instead of 
2636         old NSWindowDidChangeResolutionNotification
2637         -and corresponding-
2638         <rdar://problem/10317253>
2639
2640         Reviewed by Tim Hatcher.
2641
2642         * WebView/WebView.mm:
2643         (-[WebView addWindowObserversForWindow:]):
2644         (-[WebView removeWindowObservers]):
2645
2646         We have to check that the backing scale factor actually changed since this 
2647         notification can also be used to signify other changes. 
2648         (-[WebView _windowDidChangeBackingProperties:]):
2649
2650 2011-11-07  Adam Barth  <abarth@webkit.org>
2651
2652         Move DomainRelaxationForbidden scheme registry to SchemeRegistry
2653         https://bugs.webkit.org/show_bug.cgi?id=71750
2654
2655         Reviewed by Eric Seidel.
2656
2657         * WebView/WebView.mm:
2658         (+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
2659
2660 2011-11-07  Jessie Berlin  <jberlin@apple.com>
2661
2662         Need a way to allow a scheme access to Local Storage and Databases while Private Browsing is
2663         enabled.
2664         https://bugs.webkit.org/show_bug.cgi?id=71631
2665
2666         Reviewed by Jon Honeycutt.
2667
2668         Add WebKit1 API to register a scheme as ignoring Private Browsing for Local Storage and
2669         Databases.
2670
2671         * WebView/WebView.mm:
2672         (+[WebView _registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:]):
2673         Call through to the SchemeRegistry function.
2674         (+[WebView _registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing:]):
2675         Ditto.
2676         * WebView/WebViewPrivate.h:
2677
2678 2011-11-03  Mark Hahnenberg  <mhahnenberg@apple.com>
2679
2680         De-virtualize JSObject::getPropertyNames
2681         https://bugs.webkit.org/show_bug.cgi?id=71306
2682
2683         Reviewed by Darin Adler.
2684
2685         Added getPropertyNames to the MethodTable, changed all the virtual 
2686         implementations of getPropertyNames to static ones, and replaced 
2687         all call sites with corresponding lookups in the MethodTable.
2688
2689         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2690         (WebKit::NetscapePluginInstanceProxy::enumerate):
2691
2692 2011-11-02  Darin Adler  <darin@apple.com>
2693
2694         Change remaining callers of releaseRef to call leakRef
2695         https://bugs.webkit.org/show_bug.cgi?id=71422
2696
2697         Reviewed by Darin Fisher.
2698
2699         * History/WebBackForwardList.mm:
2700         (-[WebBackForwardList initWithBackForwardList:]):
2701         * History/WebHistoryItem.mm:
2702         (-[WebHistoryItem copyWithZone:]):
2703         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
2704         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2705         (-[WebHostedNetscapePluginView createPlugin]):
2706         * Plugins/WebNetscapePluginView.mm:
2707         (-[WebNetscapePluginView createPlugin]):
2708         * WebCoreSupport/WebOpenPanelResultListener.mm:
2709         * WebView/WebDataSource.mm:
2710         (-[WebDataSource _initWithDocumentLoader:]):
2711         * WebView/WebResource.mm:
2712         (-[WebResourcePrivate initWithCoreResource:]):
2713         Use leakRef.
2714
2715 2011-11-02  Joseph Pecoraro  <pecoraro@apple.com>
2716
2717         Move NSRange / DOMRange conversion functions to WebFramePrivate
2718         https://bugs.webkit.org/show_bug.cgi?id=71435
2719
2720         Reviewed by Sam Weinig.
2721
2722         Move conversion functions to WebFramePrivate,
2723         and remove the no longer used versions.
2724
2725         * WebView/WebFrame.mm:
2726         (-[WebFrame _convertNSRangeToDOMRange:]):
2727         (-[WebFrame _convertDOMRangeToNSRange:]):
2728         * WebView/WebFrameInternal.h:
2729         * WebView/WebFramePrivate.h:
2730
2731 2011-11-02  Dean Jackson  <dino@apple.com>
2732
2733         Add ENABLE_CSS_SHADERS flag
2734         https://bugs.webkit.org/show_bug.cgi?id=71394
2735
2736         Reviewed by Sam Weinig.
2737
2738         * Configurations/FeatureDefines.xcconfig:
2739
2740 2011-11-02  Jon Lee  <jonlee@apple.com>
2741
2742         Expand DragController to provide more information about the dragging session
2743         https://bugs.webkit.org/show_bug.cgi?id=71324
2744         <rdar://problem/10379175>
2745
2746         Reviewed by Darin Adler.
2747
2748         * WebView/WebView.mm:
2749         (-[WebView draggingEntered:]): DragOperation is now inside the DragSession struct.
2750         (-[WebView draggingUpdated:]):
2751
2752 2011-11-02  Tom Sepez  <tsepez@chromium.org>
2753
2754         XSSAuditor is silent
2755         https://bugs.webkit.org/show_bug.cgi?id=70973
2756
2757         Reviewed by Adam Barth.
2758
2759         * WebCoreSupport/WebFrameLoaderClient.h:
2760         * WebCoreSupport/WebFrameLoaderClient.mm:
2761         (WebFrameLoaderClient::didRunInsecureContent):
2762         (WebFrameLoaderClient::didDetectXSS):
2763         * WebView/WebDelegateImplementationCaching.h:
2764         * WebView/WebFrameLoadDelegatePrivate.h:
2765         * WebView/WebView.mm:
2766         (-[WebView _cacheFrameLoadDelegateImplementations]):
2767
2768 2011-11-01  Darin Adler  <darin@apple.com>
2769
2770         Crash in PDF code when script has illegal UTF-8 or UTF-16 sequences
2771         https://bugs.webkit.org/show_bug.cgi?id=71289
2772
2773         Reviewed by Dan Bernstein.
2774
2775         Just adding a null check. I don't have access to an actual PDF with
2776         this problem but crashes from the field indicate they exist.
2777
2778         * WebView/WebPDFDocumentExtras.mm:
2779         (allScriptsInPDFDocument): Skip the code to add the script text
2780         to an array when the script is null.
2781
2782 2011-10-28  John Sullivan  <sullivan@apple.com>
2783
2784         WebKit part of:
2785         https://bugs.webkit.org/show_bug.cgi?id=71142
2786         Whether backspace goes Back should be configurable
2787
2788         Reviewed by Sam Weinig.
2789
2790         * WebView/WebFrameView.mm:
2791         (-[WebFrameView keyDown:]):
2792         Honor the new preference.
2793
2794         * WebView/WebPreferenceKeysPrivate.h:
2795         Added #define for WebKitBackspaceKeyNavigationEnabledKey
2796         
2797         * WebView/WebPreferences.mm:
2798         (+[WebPreferences initialize]):
2799         Initialize new pref to YES, to match current behavior.
2800         (-[WebPreferences setBackspaceKeyNavigationEnabled:]):
2801         New method, standard prefs setter.
2802         (-[WebPreferences backspaceKeyNavigationEnabled]):
2803         New method, standard prefs getter.
2804
2805         * WebView/WebPreferencesPrivate.h:
2806         Declared new methods.
2807         
2808         * WebView/WebView.mm:
2809         (-[WebView _preferencesChanged:]):
2810         Updates WebCore settings from WebKit prefs.
2811
2812 2011-10-28  Jochen Eisinger  <jochen@chromium.org>
2813
2814         Rename a number of methods mentioning JavaScript to just Script instead
2815         https://bugs.webkit.org/show_bug.cgi?id=71105
2816
2817         Reviewed by Adam Barth.
2818
2819         * WebView/WebView.mm:
2820         (-[WebView _preferencesChanged:]):
2821
2822 2011-10-27  Joseph Pecoraro  <pecoraro@apple.com>
2823
2824         Reviewed by David Kilzer.
2825
2826         Make FeatureDefines Identical Across OS X Projects
2827         https://bugs.webkit.org/show_bug.cgi?id=71051
2828
2829         * Configurations/FeatureDefines.xcconfig:
2830
2831 2011-10-27  Mark Hahnenberg  <mhahnenberg@apple.com>
2832
2833         De-virtualize JSCell::toThisObject
2834         https://bugs.webkit.org/show_bug.cgi?id=70958
2835
2836         Reviewed by Geoffrey Garen.
2837
2838         Converted all instances of toThisObject to static functions, 
2839         added toThisObject to the MethodTable, and replaced all call sites
2840         with a corresponding lookup in the MethodTable.
2841
2842         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2843         (WebKit::NetscapePluginInstanceProxy::invoke):
2844         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2845
2846 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
2847
2848         Remove deletePropertyVirtual
2849         https://bugs.webkit.org/show_bug.cgi?id=70738
2850
2851         Reviewed by Geoffrey Garen.
2852
2853         Removed all declarations and definitions of deletePropertyVirtual.
2854         Also replaced all call sites to deletePropertyVirtual with a 
2855         corresponding lookup in the MethodTable.
2856
2857         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2858         (WebKit::NetscapePluginInstanceProxy::removeProperty):
2859
2860 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
2861
2862         Remove putVirtual
2863         https://bugs.webkit.org/show_bug.cgi?id=70740
2864
2865         Reviewed by Geoffrey Garen.
2866
2867         Removed all declarations and definitions of putVirtual.
2868         Also replaced all call sites to putVirtual with a 
2869         corresponding lookup in the MethodTable.
2870
2871         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2872         (WebKit::NetscapePluginInstanceProxy::setProperty):
2873
2874 2011-10-24  Geoffrey Garen  <ggaren@apple.com>
2875
2876         Removed SharedUChar and tightened language around its previous uses
2877         https://bugs.webkit.org/show_bug.cgi?id=70698
2878
2879         Reviewed by David Levin.
2880
2881         - Renamed "threadSafeCopy" and "crossThreadCopy" to "isolatedCopy" because
2882         the former names gave the dangerous misimpression that the resulting object
2883         was thread-safe, which is not true.
2884
2885         * Storage/WebDatabaseTrackerClient.mm:
2886         (DidModifyOriginData::dispatchToMainThread):
2887
2888 2011-10-24  Michael Saboff  <msaboff@apple.com>
2889
2890         WebKit doesn't build with recent changes to libdispatch
2891         https://bugs.webkit.org/show_bug.cgi?id=70737
2892
2893         Added initialization for new WebKitSystemInterface function 
2894         CreateVMPressureDispatchOnMainQueue.
2895
2896         Reviewed by Geoffrey Garen.
2897
2898         * WebCoreSupport/WebSystemInterface.mm:
2899         (InitWebCoreSystemInterface):
2900
2901 2011-10-23  Mark Hahnenberg  <mhahnenberg@apple.com>
2902
2903         Remove getConstructDataVirtual
2904         https://bugs.webkit.org/show_bug.cgi?id=70638
2905
2906         Reviewed by Darin Adler.
2907
2908         Removed all declarations and definitions of getConstructDataVirtual.
2909         Also replaced all call sites to getConstructDataVirtual with a 
2910         corresponding lookup in the MethodTable.
2911
2912         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2913         (WebKit::NetscapePluginInstanceProxy::construct):
2914
2915 2011-10-20  Ian Henderson  <ianh@apple.com>
2916
2917         https://bugs.webkit.org/show_bug.cgi?id=70541
2918         There are two WebFrameLoadDelegatePrivate categories on NSObject
2919
2920         Reviewed by David Kilzer.
2921
2922         * WebView/WebViewPrivate.h: Rename the private delegate categories in
2923         WebViewPrivate.h with a "WebView" prefix to avoid collision.
2924
2925 2011-10-20  Alexey Proskuryakov  <ap@apple.com>
2926
2927         REGRESSION (r96823): Contextual menu closes immediately when control-clicking in Flash plug-in
2928         https://bugs.webkit.org/show_bug.cgi?id=70534
2929         <rdar://problem/10308827>
2930
2931         Reviewed by Darin Adler.
2932
2933         * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): Return true
2934         for contextmenu event, so that plug-ins won't get a default WebKit context menu. We can't
2935         know if the plug-in is handling mousedown (or even mouseup) by displaying a menu.
2936
2937 2011-10-19  Beth Dakin  <bdakin@apple.com>
2938
2939         https://bugs.webkit.org/show_bug.cgi?id=70396
2940         Focus rings are too thin in HiDPI in WebKit2
2941         -and corresponding-
2942         <rdar://problem/10086876>
2943
2944         Reviewed by Dan Bernstein.
2945
2946         Rename wkSetPatternBaseCTM to wkSetBaseCTM
2947         * WebCoreSupport/WebSystemInterface.mm:
2948         (InitWebCoreSystemInterface):
2949
2950         To create a HiDPI context in DRT, we have to set the base CTM, which currently 
2951         requires CG SPI, so we have to do it through WebKitSystemInterface.
2952         * WebView/WebView.mm:
2953         (-[WebView _setBaseCTM:forContext:]):
2954         * WebView/WebViewPrivate.h:
2955
2956 2011-10-18  Adam Barth  <abarth@webkit.org>
2957
2958         Always enable ENABLE(XPATH)
2959         https://bugs.webkit.org/show_bug.cgi?id=70217
2960
2961         Reviewed by Eric Seidel.
2962
2963         * Configurations/FeatureDefines.xcconfig:
2964
2965 2011-10-14  Chris Marrin  <cmarrin@apple.com>
2966
2967         Throttle rate of requestAnimationFrame when page is not visible
2968         https://bugs.webkit.org/show_bug.cgi?id=67873
2969
2970         Reviewed by Anders Carlsson.
2971
2972         Plumb through notification when the window is hidden/shown or
2973         minimized/unminimized
2974
2975         * WebView/WebView.mm:
2976         (-[WebView _windowWillOrderOnScreen:]):
2977         (-[WebView _windowWillOrderOffScreen:]):
2978
2979 2011-10-16  Adam Barth  <abarth@webkit.org>
2980
2981         Always enable ENABLE(DOM_STORAGE)
2982         https://bugs.webkit.org/show_bug.cgi?id=70189
2983
2984         Reviewed by Eric Seidel.
2985
2986         * Configurations/FeatureDefines.xcconfig:
2987         * Storage/WebStorageManager.mm:
2988         * Storage/WebStorageManagerInternal.h:
2989         * Storage/WebStorageTrackerClient.h:
2990         * Storage/WebStorageTrackerClient.mm:
2991         (WebStorageTrackerClient::dispatchDidModifyOrigin):
2992         * WebView/WebView.mm:
2993         (-[WebView _commonInitializationWithFrameName:groupName:]):
2994
2995 2011-10-14  David Kilzer  <ddkilzer@apple.com>
2996
2997         <http://webkit.org/b/70158> Fix clang compiler warnings
2998
2999         Reviewed by Darin Adler.
3000
3001         The following two methods in WebDelegateImplementationCaching.h
3002         are ambiguous in WebChromeClient::runJavaScriptPrompt() because
3003         the compiler can't decide how to convert the WTF::String
3004         defaultText argument:
3005
3006             id CallUIDelegate(WebView *, SEL, id, id);
3007             id CallUIDelegate(WebView *, SEL, id, BOOL);
3008
3009         The fix is to perform the conversion explicitly.
3010
3011         * WebCoreSupport/WebChromeClient.mm:
3012         (WebChromeClient::runJavaScriptPrompt): Extract a defaultString
3013         variable to convert the WTF::String to an NSString*, then
3014         use defaultString in place of defaultText.
3015
3016 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
3017
3018         Rename virtual put to putVirtual
3019         https://bugs.webkit.org/show_bug.cgi?id=69851
3020
3021         Reviewed by Darin Adler.
3022
3023         Renamed virtual versions of put to putVirtual in prepration for 
3024         adding the static put to the MethodTable in ClassInfo since the 
3025         compiler gets mad if the virtual and static versions have the same 
3026         name.
3027
3028         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3029         (WebKit::NetscapePluginInstanceProxy::setProperty):
3030
3031 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
3032
3033         Rename virtual deleteProperty to deletePropertyVirtual
3034         https://bugs.webkit.org/show_bug.cgi?id=69884
3035
3036         Reviewed by Darin Adler.
3037
3038         Renamed virtual versions of deleteProperty to deletePropertyVirtual in prepration for 
3039         adding the static deleteProperty to the MethodTable in ClassInfo since the 
3040         compiler gets mad if the virtual and static versions have the same name.
3041
3042         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3043         (WebKit::NetscapePluginInstanceProxy::removeProperty):
3044
3045 2011-10-12  Ryosuke Niwa  <rniwa@webkit.org>
3046
3047         Make the interface of locationAndLengthFromRange and rangeFromLocationAndLength consistent
3048         https://bugs.webkit.org/show_bug.cgi?id=69964
3049
3050         Reviewed by Enrica Casucci.
3051
3052         * WebView/WebFrame.mm:
3053         (-[WebFrame _convertToNSRange:]):
3054         (-[WebFrame _convertToDOMRange:]):
3055
3056 2011-10-13  Mark Hahnenberg  <mhahnenberg@apple.com>
3057
3058         Rename virtual getConstructData to getConstructDataVirtual
3059         https://bugs.webkit.org/show_bug.cgi?id=69872
3060
3061         Reviewed by Geoffrey Garen.
3062
3063         Renamed virtual getConstructData functions to getConstructDataVirtual to 
3064         avoid conflicts when we add static getConstructData to the MethodTable.
3065
3066         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3067         (WebKit::NetscapePluginInstanceProxy::construct):
3068
3069 2011-10-13  Beth Dakin  <bdakin@apple.com>
3070
3071         https://bugs.webkit.org/show_bug.cgi?id=70050
3072         DRT and WRT should have HiDPI testing capabilities
3073
3074         Reviewed by Darin Adler.
3075
3076         New method _backingScaleFactor matches SPI of a similar name that I added 
3077         recently to WKPage in WebKit2. Equivalent functionality is needed for 
3078         DumpRenderTree's HiDPI support.
3079         * WebView/WebView.mm:
3080         (-[WebView _backingScaleFactor]):
3081         * WebView/WebViewPrivate.h:
3082
3083 2011-10-12  Chris Marrin  <cmarrin@apple.com>
3084
3085         Sync requestAnimationFrame callback to CVDisplayLink on Mac
3086         https://bugs.webkit.org/show_bug.cgi?id=68911
3087
3088         Reviewed by Simon Fraser.
3089
3090         Add windowDidChangeScreen function which listens for the window changing
3091         screens and passes the new displayID along to WebCore::Page. It also sends
3092         one on windowWillOrderOnScreen, so the Page has a fresh displayID after it's
3093         created.
3094
3095         * WebView/WebView.mm:
3096         (-[WebView addWindowObserversForWindow:]):
3097         (-[WebView removeWindowObservers]):
3098         (-[WebView _windowDidChangeScreen:]):
3099         (-[WebView _windowWillOrderOnScreen:]):
3100
3101 2011-10-12  Adam Barth  <abarth@webkit.org>
3102
3103         Remove ENABLE(XHTMLMP) and associated code
3104         https://bugs.webkit.org/show_bug.cgi?id=69729
3105
3106         Reviewed by David Levin.
3107
3108         * Configurations/FeatureDefines.xcconfig:
3109
3110 2011-10-10  Nate Chapin  <japhet@chromium.org>
3111
3112         Use a CachedImageClient instead of CachedResourceClient
3113         in WebHTMLView.
3114         https://bugs.webkit.org/show_bug.cgi?id=69790
3115
3116         Reviewed by Adam Barth.
3117
3118         * WebView/WebHTMLView.mm:
3119         (promisedDataClient):
3120
3121 2011-10-10  Mark Hahnenberg  <mhahnenberg@apple.com>
3122
3123         Remove getCallDataVirtual methods
3124         https://bugs.webkit.org/show_bug.cgi?id=69186
3125
3126         Reviewed by Geoffrey Garen.
3127
3128         Removed all getCallDataVirtual methods and replaced their call sites 
3129         with an explicit lookup in the MethodTable.
3130
3131         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3132         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3133
3134 2011-10-10  Joseph Pecoraro  <joepeck@webkit.org>
3135
3136         Extract WebOpenPanelResultListener out into its own file
3137         https://bugs.webkit.org/show_bug.cgi?id=69575
3138
3139         Reviewed by David Kilzer.
3140
3141         Extract the WebOpenPanelResultListener class out into
3142         its own file. No functional change.
3143
3144         * WebCoreSupport/WebChromeClient.mm:
3145         * WebCoreSupport/WebOpenPanelResultListener.h: Added.
3146         * WebCoreSupport/WebOpenPanelResultListener.mm: Added.
3147         (-[WebOpenPanelResultListener dealloc]):
3148         (-[WebOpenPanelResultListener finalize]):
3149         (-[WebOpenPanelResultListener cancel]):
3150         (-[WebOpenPanelResultListener chooseFilename:]):
3151         (-[WebOpenPanelResultListener chooseFilenames:]):
3152         * WebView/WebUIDelegate.h:
3153
3154 2011-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
3155
3156         Unreviewed, rolling out r96996.
3157         http://trac.webkit.org/changeset/96996
3158         https://bugs.webkit.org/show_bug.cgi?id=69697
3159
3160         It broke all tests on the Qt bot (Requested by Ossy_night on
3161         #webkit).
3162
3163         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3164         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3165
3166 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
3167
3168         Remove getCallDataVirtual methods
3169         https://bugs.webkit.org/show_bug.cgi?id=69186
3170
3171         Reviewed by Geoffrey Garen.
3172
3173         Removed all getCallDataVirtual methods and replaced their call sites 
3174         with an explicit lookup in the MethodTable.
3175
3176         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3177         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3178
3179 2011-10-06  Anders Carlsson  <andersca@apple.com>
3180
3181         When building with clang, enable -Wglobal-constructors and -Wexit-time-destructors
3182         https://bugs.webkit.org/show_bug.cgi?id=69586
3183
3184         Reviewed by Darin Adler.
3185
3186         * Configurations/Base.xcconfig:
3187         Add -Wglobal-constructors and -Wexit-time-destructors when building with clang.
3188
3189 2011-10-06  Anders Carlsson  <andersca@apple.com>
3190
3191         Add DEFINE_DEBUG_ONLY_GLOBAL for globals that should be defined in debug builds
3192         https://bugs.webkit.org/show_bug.cgi?id=69584
3193
3194         Reviewed by Darin Adler.
3195
3196         Adopt the DEFINE_DEBUG_ONLY_GLOBAL macro.
3197
3198         * Plugins/Hosted/HostedNetscapePluginStream.mm:
3199         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3200
3201 2011-10-03  Andy Estes  <aestes@apple.com>
3202
3203         Add an option to suppress rendering until the document's load event fires.
3204         https://bugs.webkit.org/show_bug.cgi?id=69298
3205
3206         Reviewed by Simon Fraser.
3207         
3208         Add a new private WebPreference.
3209
3210         * WebView/WebPreferenceKeysPrivate.h:
3211         * WebView/WebPreferences.mm:
3212         (+[WebPreferences initialize]):
3213         (-[WebPreferences setSuppressRenderingWhileInitiallyLoading:]):
3214         (-[WebPreferences suppressRenderingWhileInitiallyLoading]):
3215         * WebView/WebPreferencesPrivate.h:
3216         * WebView/WebView.mm:
3217         (-[WebView _preferencesChanged:]):
3218
3219 2011-10-05  Jer Noble  <jer.noble@apple.com>
3220
3221         Enable WEB_AUDIO by default in the WebKit/mac port.
3222         https://bugs.webkit.org/show_bug.cgi?id=68587
3223
3224         Reviewed by Simon Fraser.
3225
3226         * Configurations/FeatureDefines.xcconfig:
3227
3228 2011-10-05  David Kilzer  <ddkilzer@apple.com>
3229
3230         <http://webkit.org/b/69386> REGRESSION: Curious Location of StorageTracker.db
3231
3232         Reviewed by Alexey Proskuryakov.
3233
3234         * Storage/WebStorageManager.mm:
3235         (+[WebStorageManager _storageDirectoryPath]): Restore call to
3236         -[NSString stringByStandardizingPath].  Also fix over-release of
3237         sLocalStoragePath if the initial -objectForKey: call returned an
3238         NSString object.  Use pthread_once to be thread-safe.
3239
3240 2011-10-04  Kent Tamura  <tkent@chromium.org>
3241
3242         Introduce feature flags for incomplete input types
3243         https://bugs.webkit.org/show_bug.cgi?id=68971
3244
3245         Reviewed by Hajime Morita.
3246
3247         * Configurations/FeatureDefines.xcconfig:
3248         Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
3249
3250 2011-10-03  Geoffrey Garen  <ggaren@apple.com>
3251
3252         Some JSValue cleanup
3253         https://bugs.webkit.org/show_bug.cgi?id=69320
3254
3255         Reviewed by Darin Adler.
3256
3257         * WebView/WebView.mm:
3258         (aeDescFromJSValue): Updated for JSC changes.
3259
3260 2011-10-04  Scott Graham  <scottmg@chromium.org>
3261
3262         Add GAMEPAD feature flag
3263         https://bugs.webkit.org/show_bug.cgi?id=66859
3264
3265         Reviewed by Darin Fisher.
3266
3267         * Configurations/FeatureDefines.xcconfig:
3268
3269 2011-10-03  Jer Noble  <jer.noble@apple.com>
3270
3271         Unreviewed, rolling out r96526.
3272         http://trac.webkit.org/changeset/96526
3273         https://bugs.webkit.org/show_bug.cgi?id=68587
3274
3275         WEB_AUDIO has numerous 64->32 bit casting warnings, causing
3276         build breakages where -Wall is enabled.
3277
3278         * Configurations/FeatureDefines.xcconfig:
3279
3280 2011-10-03  Jer Noble  <jer.noble@apple.com>
3281
3282         Enable WEB_AUDIO by default in the WebKit/mac port.
3283         https://bugs.webkit.org/show_bug.cgi?id=68587
3284
3285         Reviewed by Simon Fraser.
3286
3287         * Configurations/FeatureDefines.xcconfig:
3288
3289 2011-10-02  Sam Weinig  <sam@webkit.org>
3290
3291         Strength reduce Mac only Frame::searchForLabelsBeforeElement and Frame::matchLabelsAgainstElement into callers
3292         https://bugs.webkit.org/show_bug.cgi?id=69230
3293
3294         Reviewed by Anders Carlsson.
3295
3296         * WebView/WebHTMLRepresentation.mm:
3297         (regExpForLabels):
3298         (searchForLabelsBeforeElement):
3299         (matchLabelsAgainstString):
3300         (matchLabelsAgainstElement):
3301         (-[WebHTMLRepresentation searchForLabels:beforeElement:resultDistance:resultIsInCellAbove:]):
3302         (-[WebHTMLRepresentation matchLabels:againstElement:]):
3303
3304 2011-10-02  Alexey Proskuryakov  <ap@apple.com>
3305
3306         REGRESSION (r95474): Unable to type anywhere in nightly builds in WebKit1 mode
3307         https://bugs.webkit.org/show_bug.cgi?id=68542
3308
3309         Reviewed by Mark Rowe.
3310
3311         * WebView/WebView.mm: (-[WebView _usesDocumentViews]): Re-add this method for now.
3312
3313 2011-10-01  Geoffrey Garen  <ggaren@apple.com>
3314
3315         Leopard build fix: Updated for Strong<T> changes.
3316
3317         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3318         * WebView/WebScriptDebugger.mm:
3319
3320 2011-09-28  Joseph Pecoraro  <joepeck@webkit.org>
3321
3322         ASSERT if WebView's UIDelegate does not implement webView:runOpenPanel
3323         https://bugs.webkit.org/show_bug.cgi?id=69037
3324
3325         Reviewed by Alexey Proskuryakov.
3326
3327         * WebCoreSupport/WebChromeClient.mm:
3328         (WebChromeClient::runOpenPanel):
3329         If no delegate is implemented, dismiss the listener
3330         with a cancel. It expects some action.
3331
3332 2011-09-28  Anton D'Auria  <adauria@apple.com>
3333
3334         Expose +[WebStorageManager _storageDirectoryPath] as SPI
3335         https://bugs.webkit.org/show_bug.cgi?id=68951
3336
3337         Reviewed by Brady Eidson.
3338
3339         This patch exposes +[WebStorageManager _storageDirectoryPath], which
3340         pulls the path from NSUserDefaults if the preference is set. Otherwise,
3341         it falls back on the default path.
3342
3343         * Storage/WebStorageManager.mm:
3344         (+[WebStorageManager _storageDirectoryPath]): Adding static variable
3345         so that we don't reread user defaults repeatedly.
3346         (WebKitInitializeStorageIfNecessary):
3347         * Storage/WebStorageManagerPrivate.h:
3348
3349 2011-09-27  Andy Estes  <aestes@apple.com>
3350
3351         WebKitLinkedOnOrAfter() check is ineffective for Solar Walk app-specific hack.
3352         https://bugs.webkit.org/show_bug.cgi?id=68863
3353
3354         Reviewed by Darin Adler.
3355
3356         The SolarWalk binary does not link against WebKit.framework directly,
3357         so calling NSVersionOfLinkTimeLibrary() will not return the version of
3358         WebKit against which SolarWalk was linked. Since Solar Walk has
3359         released an update that addresses the issue for which this app-specific
3360         hack was originally added, we should just remove the hack.
3361
3362         * Misc/SolarWalkQuirksUserScript.js: Removed.
3363         * WebView/WebView.mm: Removed needsSolarWalkQuirksScript(),
3364         leakSolarWalkQuirksUserScriptContents(), and
3365         -[WebView _injectSolarWalkQuirksScript].
3366         (-[WebView _commonInitializationWithFrameName:groupName:]): Do not
3367         inject the Solar Walk quirks script.
3368
3369 2011-09-27  Mark Hahnenberg  <mhahnenberg@apple.com>
3370
3371         Add static version of JSCell::getCallData
3372         https://bugs.webkit.org/show_bug.cgi?id=68741
3373
3374         Reviewed by Darin Adler.
3375
3376         In this patch we just extract the bodies of the virtual getCallData methods
3377         throughout the JSCell inheritance hierarchy out into static methods, which are 
3378         now called from the virtual methods.  This is an intermediate step in trying to 
3379         move the virtual-ness of getCallData into our own method table stored in 
3380         ClassInfo.  We need to convert the methods to static methods because static methods 
3381         can be represented as function pointers rather than pointers to member functions, and
3382         function pointers are smaller and faster to call than pointers to member functions.
3383
3384         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3385         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3386
3387 2011-09-23  Simon Fraser  <simon.fraser@apple.com>
3388
3389         Repaint tests don't work in WebKit2
3390         https://bugs.webkit.org/show_bug.cgi?id=68453
3391
3392         Reviewed by Sam Weinig.
3393
3394         Have FrameView keep track of repaint rects when asked to, and
3395         expose this set of repaint rects via private WebKit API for later
3396         use by DumpRenderTree.
3397
3398         * WebView/WebView.mm:
3399         (-[WebView setTracksRepaints:]):
3400         (-[WebView isTrackingRepaints]):
3401         (-[WebView resetTrackedRepaints]):
3402         (-[WebView trackedRepaintRects]):
3403         * WebView/WebViewPrivate.h:
3404
3405 2011-09-25  Mark Hahnenberg  <mhahnenberg@apple.com>
3406
3407         Add custom vtable struct to ClassInfo struct
3408         https://bugs.webkit.org/show_bug.cgi?id=68567
3409
3410         Reviewed by Oliver Hunt.
3411
3412         Added CREATE_METHOD_TABLE macro to generate the custom vtable for the 
3413         specified class in its ClassInfo.  Also added to it the first function to use 
3414         this macro, visitChildren.  This is part of the process of getting rid of all 
3415         C++ virtual methods in JSCell.  Eventually all virtual functions in JSCell 
3416         that can't easily be converted to non-virtual functions will be put into 
3417         this custom vtable structure.
3418
3419         * Plugins/Hosted/ProxyInstance.mm:
3420         * Plugins/Hosted/ProxyRuntimeObject.mm:
3421
3422 2011-09-24  Adam Barth  <abarth@webkit.org>
3423
3424         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
3425         https://bugs.webkit.org/show_bug.cgi?id=68767
3426
3427         Reviewed by Eric Seidel.
3428
3429         * Configurations/FeatureDefines.xcconfig:
3430         * Misc/WebCache.mm:
3431         (+[WebCache empty]):
3432         * WebCoreSupport/WebApplicationCache.mm:
3433         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
3434         (-[WebApplicationCacheQuotaManager usage]):
3435         (-[WebApplicationCacheQuotaManager quota]):
3436         (-[WebApplicationCacheQuotaManager setQuota:]):
3437         * WebCoreSupport/WebChromeClient.h:
3438         * WebCoreSupport/WebChromeClient.mm:
3439         * WebView/WebDataSource.mm:
3440         (-[WebDataSource _transferApplicationCache:]):
3441         * WebView/WebFrame.mm:
3442         (-[WebFrame _cacheabilityDictionary]):
3443         * WebView/WebView.mm:
3444         (WebKitInitializeApplicationCachePathIfNecessary):
3445
3446 2011-09-23  Adam Klein  <adamk@chromium.org>
3447
3448         Add ENABLE_MUTATION_OBSERVERS feature flag
3449         https://bugs.webkit.org/show_bug.cgi?id=68732
3450
3451         Reviewed by Ojan Vafai.
3452
3453         This flag will guard an implementation of the "Mutation Observers" proposed in
3454         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
3455
3456         * Configurations/FeatureDefines.xcconfig:
3457
3458 2011-09-23  Anders Carlsson  <andersca@apple.com>
3459
3460         Axe WebImageRendererFactory
3461         https://bugs.webkit.org/show_bug.cgi?id=68715
3462
3463         Reviewed by Darin Adler.
3464
3465         Remove WebImageRendererFactory, it was used by Safari 3, many a moon ago.
3466
3467         * WebCoreSupport/WebImageRendererFactory.m: Removed.
3468
3469 2011-09-23  Anders Carlsson  <andersca@apple.com>
3470
3471         Add OVERRIDE to a bunch of virtual member functions on clients
3472         https://bugs.webkit.org/show_bug.cgi?id=68712
3473
3474         Reviewed by Sam Weinig.
3475
3476         * Configurations/Base.xcconfig:
3477         * WebCoreSupport/WebChromeClient.h:
3478         * WebCoreSupport/WebContextMenuClient.h:
3479         * WebCoreSupport/WebDeviceOrientationClient.h:
3480         * WebCoreSupport/WebDragClient.h:
3481         * WebCoreSupport/WebEditorClient.h:
3482         * WebCoreSupport/WebFrameLoaderClient.h:
3483         * WebCoreSupport/WebFrameNetworkingContext.h:
3484         * WebCoreSupport/WebGeolocationClient.h:
3485         * WebCoreSupport/WebIconDatabaseClient.h:
3486         * WebCoreSupport/WebInspectorClient.h:
3487         * WebCoreSupport/WebPlatformStrategies.h:
3488
3489 2011-09-22  Dean Jackson  <dino@apple.com>
3490
3491         Add ENABLE_CSS_FILTERS
3492         https://bugs.webkit.org/show_bug.cgi?id=68652
3493
3494         Reviewed by Simon Fraser.
3495
3496         * Configurations/FeatureDefines.xcconfig:
3497
3498 2011-09-22  Anders Carlsson  <andersca@apple.com>
3499
3500         Get rid of Widget::setBoundsSize
3501         https://bugs.webkit.org/show_bug.cgi?id=68491
3502
3503         Reviewed by Sam Weinig.
3504
3505         This basically reverts http://trac.webkit.org/changeset/79167 and http://trac.webkit.org/changeset/75897
3506         which were added to make zoom gestures work with WebKit1, but since we don't support zoom gestures in WebKit1
3507         anymore, it's better for code cleanliness to get rid of Widget::setBoundsSize and the associated code. While this
3508         will unfortunately break transformed iframes in WebKit1, but Simon says that it's an acceptable tradeoff.
3509
3510         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3511         (-[WebHostedNetscapePluginView updateAndSetWindow]):
3512         * WebView/WebFrameView.mm:
3513
3514 2011-09-19  Jer Noble  <jer.noble@apple.com>
3515
3516         Add settings to control the availability of the Web Audio API to WebKit and WebKit2.
3517         https://bugs.webkit.org/show_bug.cgi?id=68382
3518
3519         Reviewed by Darin Adler.
3520
3521         Initialize the webAudioEnabled preference to NO by default.
3522
3523         * WebView/WebPreferences.mm:
3524         (+[WebPreferences initialize]):
3525
3526 2011-09-21  Anders Carlsson  <andersca@apple.com>
3527
3528         Remove checks for Leopard-only Objective-C APIs
3529         https://bugs.webkit.org/show_bug.cgi?id=68579
3530
3531         Reviewed by Sam Weinig.
3532
3533         We can always assume that OBJC_API_VERSION is at least 2, it's been 2 since Leopard.
3534
3535         * Misc/WebNSObjectExtras.h:
3536
3537 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
3538
3539         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
3540         https://bugs.webkit.org/show_bug.cgi?id=67702
3541
3542         Reviewed by Csaba Osztrogon√°c.
3543
3544         * WebCoreSupport/WebPlatformStrategies.h:
3545         * WebCoreSupport/WebPlatformStrategies.mm:
3546         (WebPlatformStrategies::isLinkVisited):
3547
3548 2011-09-20  Anders Carlsson  <andersca@apple.com>
3549
3550         Remove ScrollView::platformContentsSize
3551         https://bugs.webkit.org/show_bug.cgi?id=68188
3552
3553         Reviewed by Darin Adler.
3554
3555         When creating the document view, make sure it's zero sized which matches the initial size
3556         of the ScrollView. This is fine to do early since DocumentWriter::begin sets the contents
3557         size to a zero size anyway.
3558
3559         * WebView/WebFrameView.mm:
3560         (-[WebFrameView _makeDocumentViewForDataSource:]):
3561
3562 2011-09-19  Pavel Feldman  <pfeldman@google.com>
3563
3564         Web Inspector: streamline Console's MessageType and MessageSource semantics.
3565         https://bugs.webkit.org/show_bug.cgi?id=68342
3566
3567         This change fixes semantics of the MessageSource and MessageType:
3568         MessageSource is now the source of the message (be it Network, HTML
3569         parser or Console API). MessageType is only defined for the Console API
3570         messages and contains the name of the API call (log, dir, dirxml, etc.).