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