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