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